
Professional Android
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
and capabilities
Professional Android, 4th Edition shows developers how to
leverage the latest features of Android to create robust and
compelling mobile apps. This hands-on approach provides in-depth
coverage through a series of projects, each introducing a new
Android platform feature and highlighting the techniques and best
practices that exploit its utmost functionality. The exercises
begin simply, and gradually build into advanced Android
development. Clear, concise examples show you how to quickly
construct real-world mobile applications.
This book is your guide to smart, efficient, effective Android
development.
* Learn the best practices that get more out of Android
* Understand the anatomy, lifecycle, and UI metaphor of Android
apps
* Design for all mobile platforms, including tablets
* Utilize both the Android framework and Google Play
services
More details
Other editions
Additional editions

Content
INTRODUCTION
For many people, smartphones have become an extension of themselves. Now running on over 2 billion monthly-active devices, Android is the most common smartphone operating system in use world-wide, with users installing an average of 50 apps each, resulting in over 94 billion apps downloaded from the Play app store in 2017 alone.
Ubiquitous and indispensable, smartphones are so advanced and personal that studies have shown people become anxious if they misplace their device, lose connectivity, or run low on battery.
In the 10 years since launching in 2008, Android has expanded beyond mobile phones to become a development platform for a wide range of hardware, with 24,000 devices from over 1,300 brands, including everything from tablets to televisions, watches, cars, and Internet of Things (IoT) devices. Over the same period, there have been 28 platform and SDK releases.
These innovations, combined with the size of the ecosystem, provide unparalleled opportunities for developers to create innovative new applications for a global audience of users.
Android offers an open platform for mobile application development. Without artificial barriers, Android developers are free to write apps that take full advantage of an incredible range of devices. Using Google Play for distribution, developers can distribute free and paid applications to compatible Android devices globally.
This book is a hands-on guide to building Android applications for all Android devices. It's written based on version 8.1 of the Android SDK, using Android Studio 3.1. Chapter by chapter, it takes you through a series of sample projects, each introducing new features and techniques to get the most out of Android. It covers all the basic functionality to get started, as well as the information for experienced mobile developers to take full advantage of the features of Android, to enhance existing products or create innovative new ones.
The Android team releases a new major platform every year, a new version of Android Studio every few months, and incremental changes to Jetpack, such as the support library and Android Architecture Components, many times each year. With such rapid release cycles, there are regular changes, additions, and improvements to the tools, platform APIs, and development libraries you'll use-and which are described in this book. To minimize the impact of these changes, the Android engineering team works hard to ensure backward compatibility.
However, future releases will date some of the information provided in this book, and not all active Android devices will be running the latest platform release. To mitigate this, wherever possible, we have used backward-compatible support libraries, and included details on which platform releases support the functionality described-and which alternatives may exist to provide support for users of devices running earlier platforms.
Further, the explanations and examples included will give you the grounding and knowledge needed to write compelling mobile applications using the current SDK, along with the flexibility to quickly adapt to future enhancements.
WHO THIS BOOK IS FOR
This book is for anyone interested in creating applications for the Android platform. It includes information that will be valuable, whether you're an experienced mobile developer on other platforms, making your first foray into writing mobile apps, and if you have some Android development experience.
It will help if you've used a smartphone (particularly an Android device), but it's not necessary, nor is prior experience in mobile application development.
It's expected that you'll have experience in software development and be familiar with basic object-oriented paradigms. An understanding of Java syntax is expected, though not a strict necessity.
Chapters 1 and 2 introduce mobile development and the Android development platform, and contain instructions to get you started. Beyond that, there's no requirement to read the chapters in order, although a good understanding of the core components described in Chapters 3-7 is important before you venture into the remaining chapters. Chapter 11 covers important details on how to ensure your apps are responsive and efficient, while Chapters 12-14 describe how to provide a rich and consistent user experience. The remaining chapters cover a variety of functionality whose relevance will vary based on your application, and can be read in whatever order interest or need dictates.
WHAT THIS BOOK COVERS
Chapter 1 introduces Android, including what it is and how it fits into the mobile development ecosystem. What Android offers as a development platform and why it's an exciting opportunity for creating mobile phone applications are then examined in greater detail.
Chapter 2 covers some best practices for mobile development and explains how to download and install Android Studio and the Android SDK. It then introduces some of the tools and features included with Android Studio, and demonstrates how they can be used to create and debug new applications.
Chapters 3-7 take an in-depth look at the fundamental Android application components-starting by examining the components that make up an Android application, and then moving on to "Activities" and "Fragments," and their associated lifetimes and lifecycles.
You'll then be introduced to the application manifest and the Gradle build system, before learning more about the external resource framework used to support devices used in different counties, with different languages, and in a variety of shapes and sizes.
You'll learn how to create basic user interfaces with layouts, Views, and Fragments, before being introduced to the Intent and Broadcast Receiver mechanisms used to perform actions and send messages between application components. Accessing Internet resources is then covered, followed by a detailed look at data storage, retrieval, and sharing. You'll start with the preference-saving mechanism and then move on to file handling, databases, and Content Providers-including accessing data from the native databases.
This section finishes with an examination of how to ensure your app is always responsive, and is efficient in its use of battery when running in the background. You'll be introduced to threading APIs that enable asynchronous execution, and mechanisms that support efficient scheduling of background work. You'll also learn how to create and display interactive Notifications.
Chapters 12-14 build on the UI framework introduced in Chapter 5. You'll learn to enhance the user experience through the principles of material design and to make your applications accessible and optimized for a variety of screen sizes and resolutions. You'll further improve the user experience by understanding the variety of navigation options available, adding movement through animations, and the use of Toolbars and Menus.
Chapters 15-19 look at more advanced topics. You'll learn how to use Google Play services to add interactive maps, find the user's location, and how to create geo- and awareness-fences. Using movement and environmental Sensors-including the compass, accelerometers, and the barometer-you'll make your applications react to their environment.
After looking at how to play and record multimedia, as well as how to use the camera to take pictures and record video, you'll be introduced to Android's communication capabilities, including Bluetooth, NFC, and Wi-Fi Direct. Next, you'll learn how your applications can interact with users directly from the home screen using dynamic Widgets, Live Wallpaper, and the Application Shortcuts.
Chapter 20 discusses several advanced development topics, including security, using the fingerprint sensor, and Strict Mode, followed by the telephony APIs and the APIs used to send and receive SMS messages.
Finally, Chapter 21 examines the process for building, releasing, monitoring, and monetizing your applications. In particular, it includes details for publishing and distributing your applications within Google Play.
HOW THIS BOOK IS STRUCTURED
This book is structured in a logical sequence to help readers of different development backgrounds learn how to write advanced Android applications. There's no requirement to read each chapter sequentially, but several of the sample projects are developed over the course of multiple chapters, adding new functionality and other enhancements at each stage.
Experienced mobile developers who have already installed Android Studio, and those with a working knowledge of Android development, can skim the first two chapters-which are an introduction to mobile development and instructions for creating your development environment-and then dive in at Chapters 3-7. These chapters cover the fundamentals of Android development, so it's important to have a solid understanding of the concepts they describe.
With this covered, you can move on to the remaining chapters, which look at material design, maps, location-based services, background applications, and more advanced topics, such as hardware interaction and networking.
WHAT YOU NEED TO USE THIS BOOK
To use the code samples in this book, you will need to...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.