Book description
Build feature-rich, reliable Android Pie apps with the help of more than 100 proven industry standard recipes and strategies.
Key Features
- Uncover the latest features in Android 9 Pie to make your applications stand out
- Develop Android Pie applications with the latest mobile technologies, from set up to security
- Get up-to-speed with Android Studio 3 and its impressive new features
Book Description
The Android OS has the largest installation base of any operating system in the world. There has never been a better time to learn Android development to write your own applications, or to make your own contributions to the open source community! With this extensively updated cookbook, you'll find solutions for working with the user interfaces, multitouch gestures, location awareness, web services, and device features such as the phone, camera, and accelerometer. You also get useful steps on packaging your app for the Android Market. Each recipe provides a clear solution and sample code you can use in your project from the outset. Whether you are writing your first app or your hundredth, this is a book that you will come back to time and time again, with its many tips and tricks on the rich features of Android Pie.
What you will learn
- Develop applications using the latest Android framework while maintaining backward-compatibility with the support library
- Create engaging applications using knowledge gained from recipes on graphics, animations, and multimedia
- Work through succinct steps on specifics that will help you complete your project faster
- Add location awareness to your own app with examples using the latest Google Play services API
- Utilize Google Speech Recognition APIs for your app
Who this book is for
If you are new to Android development and want to take a hands-on approach to learning the framework, or if you are an experienced developer in need of clear working code to solve the many challenges in Android development, you will benefit from this book. Either way, this is a resource you'll want to keep on your desk as a quick reference to help you solve new problems as you tackle more challenging projects.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Activities
- Layouts
- Views, Widgets, and Styles
- Menus and Action Mode
- Fragments
- Home Screen Widgets, Search, and the System UI
-
Data Storage
- Introduction
- Storing simple data
- Read and write a text file to internal storage
- Read and write a text file to external storage
- Including resource files in your project
- Creating and using an SQLite database
- Accessing data in the background using a Loader
- Accessing external storage with scoped directories in Android N
-
Alerts and Notifications
- Introduction
- Lights, Action, and Sound – getting the user's attention!
- Creating a Toast with a custom layout
- Displaying a message box with AlertDialog
- Displaying a progress dialog
- Lights, Action, and Sound Redux using Notifications
- Creating a Media Player Notification
- Making a Flashlight with a Heads-Up Notification
- Notifications with Direct Reply
-
Using the Touchscreen and Sensors
- Introduction
- Listening for click and long-press events
- Recognizing tap and other common gestures
- Pinch-to-zoom with multi-touch gestures
- Swipe-to-Refresh
- Listing available sensors – an introduction to the Android Sensor Framework
- Reading sensor data – using Android Sensor Framework events
- Reading device orientation
-
Graphics and Animation
- Introduction
- Scaling down large images to avoid Out of Memory exceptions
- A transition animation – defining scenes and applying a transition
- Creating a Compass using sensor data and RotateAnimation
- Creating a slideshow with ViewPager
- Creating a Card Flip Animation with Fragments
- Creating a Zoom Animation with a Custom Transition
- Displaying animated image (GIF/WebP) with the new ImageDecoder library
- Creating a circle image with the new ImageDecoder
- A First Look at OpenGL ES
- Multimedia
- Telephony, Networks, and the Web
- Location and Using Geofencing
- Getting Your App Ready for the Play Store
- Getting Started with Kotlin
- Other Books You May Enjoy
Product information
- Title: Android 9 Development Cookbook - Third Edition
- Author(s):
- Release date: October 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788991216
You might also like
book
Android Application Development Cookbook - Second Edition
Over 100 recipes to help you solve the most common problems faced by Android Developers today …
book
Pro Android 4
Pro Android 4shows you how to build real-world and fun mobile apps using the new Android …
book
Pro Android Wearables: Building Apps for Smartwatches
Learn how to design and build Android Wear apps for Android wearable devices, such as Google …
book
Android Things Projects
Develop smart Internet of things projects using Android Things. About This Book Learn to build promising …