Home Page Icon
Home Page
Table of Contents for
Title
Close
Title
by Onur Cinar
Android Quick APIs Reference
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Preface
Chapter 1: Android Platform
Platform Architecture
Linux Kernel
Native Libraries
Android Runtimes
Application Framework
Applications
Android Versions
Platform Version
Platform Codename
API Level
Android Platform Fragmentation
Android Support Library
Summary
Chapter 2: Development Environment
Android Toolchain
Android Software Development Kit
Android Native Development Kit
Android Development Tools for Eclipse
Android Studio
Setting Up the Development Environment
Microsoft Windows
Apple Mac OS X
Ubuntu Linux
Hello Android Application
Creating a New Android Application Project
Building the Android Application
Running the Android Application
Summary
Chapter 3: Application Components
Activity
Creating an Activity
Declaring an Activity
Activity Life Cycle
Intent
Intent Resolution
Intent Filters
Getting and Extracting the Intent
Pending Intent
Service
Creating a Service
Declaring a Service
Restricting Access to a Service
Service Life Cycle
Service Restart Strategy
Starting a Service
Starting a Service with an Intent
Binding to a Service
System Services
Content Provider
Creating a Content Provider
Content Provider Contract
Declaring a Content Provider
Content Provider Security
Accessing a Content Provider
System Content Providers
Broadcast Messages
Sending a Broadcast Message
Receiving the Broadcast Message
Broadcast Receiver Life Cycle
Broadcast Receiver Security
Context
Application
Summary
Chapter 4: Application Resources
Structure of Resources
Resource Groups
Property Animation Resources
Tween Animation Resources
Color State List Resources
Drawable Resources
Layout Resources
Menu Resources
Raw Resources
Value Resources
XML Resources
Default and Alternative Resources
Defining Alternative Resources
Supported Configuration Qualifiers
Handling Runtime Changes
Assets
Using Assets in Web View
APK Expansion Files
Summary
Chapter 5: Layouts and Views
Layouts
Declaring Layouts
Layout Requirements
Common Layouts
Dynamic Layouts
Loading the XML Layout Resource
Accessing Individual Views in a Layout
Views
Output Controls
Input Controls
Fragments
Creating a Fragment
Adding a Fragment to an Activity
Replacing a Fragment
Adding a User Interface to a Fragment
Passing Arguments to a Fragment
Communication Between the Activity and the Fragment
Summary
Chapter 6: User Interface
Action Bar
Adding the Action Bar
Removing the Action Bar
Adding Actions to the Action Bar
Action Views
Action Providers
Toasts
Dialogs
Dialog Flavors
Showing a Dialog
Notifications
Accessing the Notification Service
Posting a Notification
Adding Actions to a Notification
Adding Action Buttons to a Notification
Updating a Notification
Canceling a Notification
Summary
Chapter 7: Storing Data
Simple Files
Using Internal Storage
Using External Storage
Caching Data Using Storage
Structuring Data Through JSON
Shared Preferences
Opening Shared Preferences
Adding and Editing Shared Preferences
Reading the Shared Preferences
Listening for Shared Preferences Changes
Preferences Screen
SQLite Relational Database
Creating and Opening the Database
Creating Tables
Upgrading the Existing Database
Writing to the Database
Reading from the Database
Deleting Data from the Database
Deleting the Entire Database
Android Backup Service
Signing Up for Android Backup Service
Adding the Backup Service Key to the Manifest
Providing the Backup Agent Implementation
Declaring the Backup Agent in the Manifest
Requesting Backup
Testing the Backup Agent Implementation
Summary
Chapter 8: Sensors and Location
Sensor
Sensor Manager
Receiving Sensor Events
Interpreting Sensor Events
Location
Location Permissions
Location Manager
Location Providers
Location Updates
Summary
Chapter 9: Media and Camera
Audio Manager
Audio Devices
Audio Streams
Playing Audio
MediaPlayer
AsyncPlayer
SoundPool
Recording Audio
Requesting Audio Record Permission
Configuring the Audio Source for Recording
Configuring the Audio Output for Recording
Starting the Audio Recording
Stopping the Audio Recording
Releasing the MediaRecorder
Playing Video
Creating a Surface for Video Playback
Starting Video Playback
Stopping Video Playback
Video Recording
Creating a Preview Surface for Video Recording
Configuring the Video Source for Video Recording
Configuring the Video Encoder for Video Recording
Camera
Requesting the Camera Access Permission
CameraManager
Opening the Camera
Capturing from the Camera
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Copyright
Android Quick APIs Reference
Onur Cinar
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset