Mobile applications have seen a huge increase in popularity in the last few years, and this interest is still growing among users. Mobile operating systems are available not only for smartphones but also for tablets, thus increasing the possible market quota for these applications.
Android has characteristics that make it pleasant to developers, such as its open source nature and a certain level of community-driven development. Android has always been contesting with iOS (the Apple mobile system) in everything, and with Xcode, iOS presented itself as a more centralized development environment. The new IDE, Android Studio, makes this centralization finally available for Android developers, and makes this tool indispensable for a good Android developer.
This book shows users how to develop and build Android applications with this new IDE. It is not only a "getting started" book but also a guide to advanced developers to build their applications faster and more productively. This book will follow a tutorial-like approach, from the basic features to the steps to build for release, including practical examples.
Chapter 1, Installing and Configuring Android Studio, describes the installation and basic configuration of Android Studio.
Chapter 2, Starting a Project, shows how to create a new project and the type of activities we can select.
Chapter 3, Navigating a Project, explores the basic structure of a project in Android Studio.
Chapter 4, Using the Code Editor, exposes the basic features of the code editor in order to get the best out of it.
Chapter 5, Creating User Interfaces, focuses on the creation of the user interfaces using both the graphical view and the text-based view.
Chapter 6, Tools, introduces the currently existing Google Play services and shows how to integrate them with a project in Android Studio.
Chapter 7, Google Play Services, exposes some additional tools such as Android SDK tools, Javadoc, and version control integration.
Chapter 8, Debugging, shows in detail how to debug an application in Android Studio and the provided information when debugging.
Chapter 9, Preparing for Release, describes how to prepare your application for its release.
Appendix, Getting Help, teaches you how to get help using Android Studio and provides a list of online sites to learn more about the topics seen in this book.
For this book, you need a Windows, Mac, or Linux system. You will also need to have Java installed in your system.
This book is not only a "getting started" book but also a guide for advanced developers who have not used Android Studio to build their Android apps before. This book is great for developers who want to learn the key features of Android Studio and for developers who want to create their first app.
It's assumed that you are familiar with the object-oriented programming paradigm and the Java programming language. It is also required to understand the main characteristics of the Android mobile system.
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The default installation directory is /Applications/Android\ Studio.app
."
A block of code is set as follows:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState != null) { System.out.println("savedInstanceState = " + savedInstanceState); } }
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " Select Blank Activity and click on Next."
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <[email protected]>
, and mention the book's title in the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.
To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors and our ability to bring you valuable content.
If you have a problem with any aspect of this book, you can contact us at <[email protected]>
, and we will do our best to address the problem.