Fundamentals of
Android App
Development
Android Development for
Beginners to Learn Android Technology,
SQLite, Firebase and Unity
by
Sujit Kumar Mishra
FIRST EDITION 2020
Copyright BPB Publications, India
ISBN: 978-93-89845-204
All Rights Reserved. No part of this publication may be reproduced or distributed in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY
The information contained in this book is true to correct and the best of authors & publishers knowledge. The author has made every effort to ensure the accuracy of these publications, but cannot be held responsible for any loss or damage arising from any information in this book.
All trademarks referred to in the book are acknowledged as properties of their respective owners.
Distributors:
BPB PUBLICATIONS
20, Ansari Road, Darya Ganj
New Delhi-110002
Ph: 23254990/23254991
MICRO MEDIA
Shop No. 5, Mahendra Chambers,
DN Rd. Next to Capital Cinema,
V.T. (C.S.T.) Station, MUMBAI-400
Ph: 22078296/22078297
DECCAN AGENCIES
4-3-329, Bank Street,
Hyderabad-500195
Ph: 24756967/24756400
BPB BOOK CENTRE
Old Lajpat Rai Market,
Delhi-110006
Ph: 23861747
Published by Manish Jain for BPB Publications, Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Ltd, Mumbai
Dedicated to
Sudha Mishra
My Mother, whose loving spirit still sustains me
About the Author
Sujit Kumar Mishra is an experienced Sr. Software Engineer, who for the past seven years has been working with customers and partners designing technology solutions. In his career, Sujit Kumar Mishra has presented at key IT events such as C# .Net, Java (Android), PHP, SAP (MM) and database SQL Server, MySQL, etc. He has also worked in senior software roles and project management roles for Tata Steel, BPCL, Sun pharma, and KPMG.
In 2020, Sujit Kumar Mishra founded his Website, where he works today, the Founder and Chief Technology Officer.
Sujit Kumar Mishra is also written four other books. Mysterious Island Zoya (Novel), Dot net & MVC interview questions: Interview preparation, how to be rich, and One Day Mathematics, which is published in 2019.
Outside work, Sujit Kumar Mishra is an Actor who is worked on TV & Bollywood Movies.
Acknowledgement
There are a few people I want to thank for the continued and ongoing support they have given me during the writing of this book. First and foremost, I would like to thank my parents and friends, Anoop Sriwastawa, Pritesh Sawant, and Harish, for putting up with me while I was spending many weekends and evenings on writingI could have never completed this book without their support.
This book wouldnt have happened if I hadnt had the support from some of the key vendors and partners in the IT Teams. My gratitude goes to the team at Computer world, especially Pritesh Sawant, for providing valuable insights into some of the new features.
Finally, I would like to thank BPB Publications for giving me this opportunity to write my first book for them.
Forword
The Android Technology is the technology that is developed by Google USA. Its Worlds most massive selling & users of this technology. Android framework is platform we can develop Web Applications, Mobile Applications, Map, Multimedia Application & Cloud base services for users. In this, we have to cover most frequently asked question & answers for student & professional who is facing problem during the development. Ive spent more than six years working experience in IT industry. Ive to collect information from different types of sources including meeting someone in the same domain & work with him etc. and Ive to figure out what the problem is and how to resolve it form this book.
My sincere thanks go to:
My publisher BPB publication & his teams. He has brought enormous in my life. They always guided & encourage for work.
Android book, who read this material, without you all, it cant be completed.
Finally, my friends & family who is always encouraging me.
Preface
Application layering is stilla recent development in Android when compared to the existing application delivery solutions available today, and how applications are typically delivered to a physical mobile. This older model of application delivery had to be changed to embrace the full features and functionality that a virtual environment delivers.
This change was made to address the issue of how to deliver applications to stateless virtual machines. This stateless or non-persistent model of delivering and building virtual machines on demand meant that end users would not own their virtual machine and instead would be allocated a new, freshly built virtual machine on-demand as they logged in. The next time they logged in, they would again log in to a freshly built virtual mobile device, with no application or end-user data or settings.
With Android App deployments, IT teams would need to build and manage several gold images such that they can be used as templates for these virtual mobiles or physical machines so that the right applications can be delivered to the correct end-users. It also meant that they would potentially need to rebuild the right image just so that they could update a single application for your mobile.
To address this issue of having several different Apps builds to manage applications and operating systems as one, admins needed a solution whereby they could manage the applications independently. A way that is very familiar today in how virtualization works are by abstracting the Android operating systems from the hardware. However, this time you are one level up, with abstracting the applications from theAndroid operating system. This approach would allow admins to deliver apps independently.
One of the ways how applications can be abstracted from the underlying Android OS, andbe able to deliver them back independently, is via application layering. With application layering, admins can create that layer of abstraction, separate the applications from the underlying OS and deliver them back to the end-users on demand. Equally, they can also be removed. As the applications are now independent of the operating system, they can be easily updated without having to touch the android operating system.
Android added an application layering solution to its end-user that Google bought in 2005, and Android was unveiled in 2007, with the first commercial Android device launched in September 2008. The Android devices certified under standards imposed by Google. Other competing Android ecosystems include Amazon.coms Fire OS, or LineageOS, etc.