Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright and Credits
Android 9 Development Cookbook Third Edition
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Activities
Introduction
Declaring an activity
Getting ready
How to do it...
How it works...
Starting a new activity with an intent object
Getting ready
How to do it...
How it works...
There's more...
See also
Switching between activities
Getting ready
How to do it...
How it works...
See also
Passing data to another activity
Getting ready
How to do it...
How it works...
There's more...
Returning a result from an activity
Getting ready
How to do it...
How it works...
There's more...
See also
Saving an activity's state
Getting ready
How to do it...
How it works...
There's more...
See also
Storing persistent activity data
Getting ready
How to do it...
How it works...
There's more...
Using more than one preference file
See also
Understanding the activity life cycle
Getting ready
How to do it...
How it works...
There's more...
Layouts
Introduction
Defining and inflating a layout
Getting ready
How to do it...
How it works...
There's more...
See also
Using RelativeLayout
Getting ready
How to do it...
How it works...
There's more...
See also
Using LinearLayout
Getting ready
How to do it...
How it works...
There's more...
See also
Creating tables – TableLayout and GridLayout
Getting ready
How to do it...
How it works...
There's more...
RecyclerView replaces ListView
Getting ready
How to do it...
How it works…
There’s more…
Changing layout properties during runtime
Getting ready
How to do it...
How it works...
Views, Widgets, and Styles
Introduction
Inserting a widget into a layout
Getting ready
How to do it...
How it works...
There's more...
See also
Using graphics to show button state
Getting ready
How to do it...
How it works...
There's more...
Using designated folders for screen-specific resources
See also
Creating a widget at runtime
Getting ready
How to do it...
How it works...
There's more...
Creating a custom component
Getting ready
How to do it...
How it works...
There's more...
See also
Applying a style to a View
Getting ready
How to do it...
How it works...
There's more...
See also
Turning a style into a theme
Getting ready
How to do it...
How it works...
There's more...
Selecting a theme based on the Android version
Getting ready
How to do it...
How it works...
There's more...
Menus and Action Mode
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
See also
Modifying menus and menu items during runtime
Getting ready
How to do it...
How it works...
There's more...
Enabling Contextual Action Mode for a view
Creating a floating context menu
Getting ready
How to do it...
How it works...
There's more...
See also
Using Contextual Batch Mode with RecyclerView
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a pop-up menu
Getting ready
How to do it...
How it works...
Fragments
Introduction
Creating and using a Fragment
Getting ready
How to do it...
How it works...
There's more...
See also
Adding and removing Fragments during runtime
Getting ready
How to do it...
How it works...
There's more...
See also
Passing data between Fragments
Getting ready
How to do it...
How it works...
There's more...
See also
Handling the Fragment back stack
Getting ready
How to do it...
How it works...
There's more...
Home Screen Widgets, Search, and the System UI
Introduction
Creating a shortcut on the Home screen
Getting ready
How to do it...
How it works...
There's more...
Creating a Home screen widget
Getting ready
How to do it...
How it works...
There's more...
See also
Adding Search to the Action Bar
Getting ready
How to do it...
How it works...
See also
Showing your app full-screen
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
See also
Data Storage
Introduction
Storing simple data
Getting ready
How to do it...
How it works...
There's more...
Read and write a text file to internal storage
Getting ready
How to do it...
How it works...
There's more...
Caching files
See also
Read and write a text file to external storage
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
See also
Including resource files in your project
Getting ready
How to do it...
How it works...
There's more...
See also
Creating and using an SQLite database
Getting ready
How to do it...
How it works...
There's more...
Upgrading a database
See also
Accessing data in the background using a Loader
Getting ready
How to do it...
How it works...
There's more...
See also
Accessing external storage with scoped directories in Android N
Getting ready
How to do it...
How it works...
There's more...
See also
Alerts and Notifications
Introduction
Lights, Action, and Sound – getting the user's attention!
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a Toast with a custom layout
Getting ready
How to do it...
How it works...
See also
Displaying a message box with AlertDialog
Getting ready
How to do it...
How it works...
There's more...
Add an icon
Using a list
Custom layout
Displaying a progress dialog
Getting ready
How to do it...
How it works...
There's more...
Lights, Action, and Sound Redux using Notifications
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
See also
Creating a Media Player Notification
Getting ready
How to do it...
How it works...
There's more...
See also
Making a Flashlight with a Heads-Up Notification
Getting ready
How to do it...
How it works...
There's more...
See also
Notifications with Direct Reply
Getting ready
How to do it...
How it works...
See also
Using the Touchscreen and Sensors
Introduction
Listening for click and long-press events
Getting ready
How to do it...
How it works...
There's more...
Recognizing tap and other common gestures
Getting ready
How to do it...
How it works...
There's more...
See also
Pinch-to-zoom with multi-touch gestures
Getting ready
How to do it...
How it works...
Swipe-to-Refresh
Getting ready
How to do it...
How it works...
There's more...
Listing available sensors – an introduction to the Android Sensor Framework
Getting ready
How to do it...
How it works...
There's more...
See also
Reading sensor data – using Android Sensor Framework events
Getting ready
How to do it...
How it works...
There's more...
Environment sensors
Position sensors
Motion sensors
See also
Reading device orientation
Getting ready
How to do it...
How it works...
There's more...
Getting current device rotation
See also
Graphics and Animation
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
A transition animation – defining scenes and applying a transition
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a Compass using sensor data and RotateAnimation
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a slideshow with ViewPager
Getting ready
How to do it...
How it works...
There's more...
Creating a Setup Wizard
See also
Creating a Card Flip Animation with Fragments
Getting ready
How to do it...
How it works...
See also
Creating a Zoom Animation with a Custom Transition
Getting ready
How to do it...
How it works...
There's more...
Getting the default animation duration
See also
Displaying animated image (GIF/WebP) with the new ImageDecoder library
Getting ready
How to do it...
How it works...
See also
Creating a circle image with the new ImageDecoder
Getting ready
How to do it...
How it works...
There's more...
See also
A First Look at OpenGL ES
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
There's more...
Drawing shapes on GLSurfaceView
Getting ready
How to do it...
How it works...
There's more...
See also
Applying the projection and camera view while drawing
Getting ready
How to do it...
How it works...
There's more...
Moving the triangle with rotation
Getting ready
How to do it...
How it works...
There's more...
The render mode
Rotating the triangle with user input
Getting ready
How to do it...
How it works...
There's more...
See also
Multimedia
Introduction
Playing sound effects with SoundPool
Getting ready
How to do it...
How it works...
There's more...
See also
Playing audio with MediaPlayer
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
See also
Responding to hardware media controls in your app
Getting ready
How to do it...
How it works...
There's more...
Checking the hardware type
See also
Taking a photo with the default camera app
Getting ready
How to do it...
How it works...
There's more...
Calling the default video app
See also
Taking a picture using the Camera2 API
Getting ready
How to do it...
How it works...
Setting up the camera preview
Capturing the image
There's more...
See also
Telephony, Networks, and the Web
Introduction
How to make a phone call
Getting ready
How to do it...
How it works...
See also
Monitoring phone call events
Getting ready
How to do it...
How it works...
There's more...
See also
How to send SMS (text) messages
Getting ready
How to do it...
How it works...
There's more...
Multipart messages
Delivery status notification
See also
Receiving SMS messages
Getting ready
How to do it...
How it works...
There's more...
Reading existing SMS messages
See also
Displaying a web page in your application
Getting ready
How to do it...
How it works...
There's more...
Controlling page navigation
How to enable JavaScript
Enable built-in zoom
See also
Checking online status and connection type
Getting ready
How to do it...
How it works...
There's more...
Monitoring network state changes
See also
Phone number blocking API
Getting ready
How to do it...
How it works...
There's more...
See also
Location and Using Geofencing
Introduction
How to get the device location
Getting ready
How to do it...
How it works...
There's more...
Mock locations
See also
Resolving problems reported with the GoogleApiClient OnConnectionFailedListener
Getting ready
How to do it...
How it works...
There's more...
See also
Creating and monitoring a Geofence
Getting ready
How to do it...
How it works...
There's more...
See also
Getting Your App Ready for the Play Store
Introduction
The Android 6.0 Runtime Permission Model
Getting ready
How to do it...
How it works...
There's more...
See also
How to schedule an alarm
Getting ready
How to do it...
How it works...
There's more...
Cancel the alarm
Repeating alarm
See also
Receiving notification of device boot
Getting ready
How to do it...
How it works...
There's more...
See also
Using the AsyncTask for background work
Getting ready
How to do it...
How it works...
There's more...
Parameter types
Canceling the task
See also
Adding speech recognition to your app
Getting ready
How to do it...
How it works...
There's more...
See also
How to add Google sign-in to your app
Getting ready
How to do it...
How it works...
There's more...
See also
Getting Started with Kotlin
Introduction
How to create an Android project with Kotlin
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a Toast in Kotlin
Getting ready
How to do it...
How it works...
See also
Runtime permission in Kotlin
Getting ready
How to do it...
How it works...
See also
Other Books You May Enjoy
Leave a review - let other readers know what you think
← Prev
Back
Next →
← Prev
Back
Next →