Android 9 Development Cookbook - Third Edition
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
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.
Show and hide more
Table of contents Product information
Table of contents
- Title Page
- Copyright and Credits
- Android 9 Development Cookbook Third Edition
- Why subscribe?
- Packt.com
- About the author
- About the reviewers
- Packt is searching for authors like you
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Reviews
- Introduction
- Declaring an activity
- Getting ready
- How to do it.
- How it works.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Using more than one preference file
- Getting ready
- How to do it.
- How it works.
- There's more.
- Introduction
- Defining and inflating a layout
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works…
- There’s more…
- Getting ready
- How to do it.
- How it works.
- Introduction
- Inserting a widget into a layout
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Using designated folders for screen-specific resources
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- Introduction
- Creating an options menu
- Getting ready
- How to do it.
- How it works.
- There's more.
- Using a menu item to launch an activity
- Creating submenus
- Grouping menu items
- Getting ready
- How to do it.
- How it works.
- There's more.
- Creating a floating context menu
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- Introduction
- Creating and using a Fragment
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Introduction
- Creating a shortcut on the Home screen
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Sticky Immersion
- Dimming the System UI
- Setting the Action Bar as an overlay
- Translucent system bars
- Introduction
- Storing simple data
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- Caching files
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting public folders
- Checking available space
- Deleting a file
- Working with directories
- Preventing files from being included in galleries
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Upgrading a database
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- Lights, Action, and Sound – getting the user's attention!
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Add an icon
- Using a list
- Custom layout
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- Adding a button to the notification using addAction()
- Expanded notifications
- Lock screen notifications
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Introduction
- Listening for click and long-press events
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Environment sensors
- Position sensors
- Motion sensors
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting current device rotation
- Introduction
- Scaling down large images to avoid Out of Memory exceptions
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Creating a Setup Wizard
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting the default animation duration
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- Setting up the OpenGL ES environment
- Getting ready
- How to do it.
- How it works.
- Declaring OpenGL in the Android Manifest
- Extending the GLSurfaceView class
- Creating an OpenGL rendered class
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Getting ready
- How to do it.
- How it works.
- There's more.
- The render mode
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- Playing sound effects with SoundPool
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Playing music in the background
- Using hardware volume keys to control your app's audio volume
- Getting ready
- How to do it.
- How it works.
- There's more.
- Checking the hardware type
- Getting ready
- How to do it.
- How it works.
- There's more.
- Calling the default video app
- Getting ready
- How to do it.
- How it works.
- Setting up the camera preview
- Capturing the image
- Introduction
- How to make a phone call
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Multipart messages
- Delivery status notification
- Getting ready
- How to do it.
- How it works.
- There's more.
- Reading existing SMS messages
- Getting ready
- How to do it.
- How it works.
- There's more.
- Controlling page navigation
- How to enable JavaScript
- Enable built-in zoom
- Getting ready
- How to do it.
- How it works.
- There's more.
- Monitoring network state changes
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- How to get the device location
- Getting ready
- How to do it.
- How it works.
- There's more.
- Mock locations
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- The Android 6.0 Runtime Permission Model
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Cancel the alarm
- Repeating alarm
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- Parameter types
- Canceling the task
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Introduction
- How to create an Android project with Kotlin
- Getting ready
- How to do it.
- How it works.
- There's more.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Getting ready
- How to do it.
- How it works.
- See also
- Leave a review - let other readers know what you think
Show and hide more
Product information
- Title: Android 9 Development Cookbook - Third Edition
- Author(s): Rick Boyer
- Release date: October 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788991216