Android Application Development Cookbook(Second Edition)
Rick Boyer Kyle Mew更新时间:2021-07-09 19:36:44
最新章节:Index封面
版权信息
Credits
Disclaimer
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Chapter 1. Activities
Introduction
Declaring an activity
Starting a new activity with an intent object
Switching between activities
Passing data to another activity
Returning a result from an activity
Saving an activity's state
Storing persistent activity data
Understanding the activity lifecycle
Chapter 2. Layouts
Introduction
Defining and inflating a layout
Using RelativeLayout
Using LinearLayout
Creating tables – TableLayout and GridLayout
Using ListView GridView and Adapters
Changing layout properties during runtime
Optimizing layouts with the Hierarchy Viewer
Chapter 3. Views Widgets and Styles
Introduction
Inserting a widget into a layout
Using graphics to show button state
Creating a widget at runtime
Creating a custom component
Applying a style to a View
Turning a style into a theme
Selecting theme based on the Android version
Chapter 4. Menus
Introduction
Creating an Options menu
Modifying menus and menu items during runtime
Enabling Contextual Action Mode for a view
Using Contextual Batch Mode with a ListView
Creating a pop-up menu
Chapter 5. Exploring Fragments AppWidgets and the System UI
Introduction
Creating and using a Fragment
Adding and removing Fragments during runtime
Passing data between Fragments
Creating a shortcut on the Home screen
Creating a Home screen widget
Adding Search to the Action Bar
Showing your app full screen
Chapter 6. Working with Data
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
Access data in the background using a Loader
Chapter 7. Alerts and Notifications
Introduction
Lights Action and Sound – getting the user's attention!
Creating a Toast using 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
Chapter 8. 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 the Android Sensor Framework events
Reading device orientation
Chapter 9. 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
Chapter 10. A First Look at OpenGL ES
Introduction
Set up the OpenGL ES environment
Drawing shapes on GLSurfaceView
Applying Projection and Camera View while drawing
Moving the triangle with rotation
Rotating the triangle with user input
Chapter 11. Multimedia
Introduction
Playing sound effects with SoundPool
Playing audio with MediaPlayer
Responding to hardware media controls in your app
Taking a photo with the default camera app
Taking a picture using the (old) Camera API
Taking a picture using the Camera2 (the new) API
Chapter 12. Telephony Networks and the Web
Introduction
How to make a phone call
Monitoring phone call events
How to send SMS (text) messages
Receiving SMS messages
Displaying a web page in your application
Checking online status and connection type
Getting started with Volley for Internet requests
Canceling a Volley request
Using Volley to request a JSON response
Using Volley to request an image
Using Volley's NetworkImageView and ImageLoader
Chapter 13. Getting Location and Using Geofencing
Introduction
How to get the last location
Resolving problems reported with the GoogleApiClient OnConnectionFailedListener
How to receive location updates
Create and monitor a Geofence
Chapter 14. Getting your app ready for the Play Store
Introduction
The new Android 6.0 Run-Time permission model
How to schedule an alarm
Receive notification of device boot
Using the AsyncTask for background work
Adding speech recognition to your app
Push Notification using GCM
How to add Google sign-in to your app
Chapter 15. The Backend as a Service Options
Introduction
App42
Backendless
Buddy
Firebase
Kinvey
Index
更新时间:2021-07-09 19:36:44