Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
About This E-Book
Title Page
Copyright Page
Dedication Page
Contents
Preface
Why Development Patterns?
Who Should Read This Book?
Getting Started
Book Structure
Acknowledgments
About the Author
1. Development Tools
Android Studio
Installing Android Studio
Using Android Studio
Starting a New Project
Standalone SDK Tools
Android Device Emulation
Android Virtual Device
GenyMotion
Xamarin Android Player
Version-Control Systems
Subversion
Git
Mercurial
Summary
2. Testing and Debugging
Unit Testing
Integration Testing
Debugging
Profiling
Tracing
Messaging
Summary
3. Application Structure
Manifests
Java
Res (Resources)
Drawable
Layout
Menu
Values
Other Resources
Gradle
Summary
4. Components
Intents
Intent Filters
Broadcast Receivers
Activities
Creating an Activity
Activity Lifecycle
Fragments
Creating a Fragment
Communicating with Fragments
Loaders
Summary
5. Views
The View Class
The AnalogClock Subclass
The ImageView Subclass
The KeyboardView Subclass
The MediaRouteButton Subclass
The ProgressBar Subclass
The Space Subclass
The SurfaceView Subclass
The TextView Subclass
The TextureView Subclass
The ViewGroup Subclass
The ViewStub Subclass
Creating a Custom View
Summary
6. Layout
Layout Basics
Layout Measurements
Layout Coordinates
Layout Containers
Linear Layout
Relative Layout
Table Layout
Frame Layout
WebView
Summary
7. App Widgets
App Widget Layouts
The AppWidgetProviderInfo Object
App Widget Sizing
Update Frequency
Preview Image
Widget Category
Widget Category Layout
Resizable Mode
Sample AppWidgetProviderInfo Object
The AppWidgetProvider Class
Application Manifest Entries
Summary
8. Application Design: Using MVC
Model
View
Controller
Working Asynchronously
AsyncTask
Summary
9. Drawing and Animation
Graphics
Bitmaps
NinePatch
Drawables
OpenGL ES
Animation
View Animation
Property Animation
Drawable Animation
Transition Framework
Summary
10. Networking
Accessing the Internet
Network Detection
Using an HTTP Client
Parsing XML
Handling Network Operations Asynchronously
Volley
Summary
11. Working with Location Data
Permissions
Google Play Services Locations API
Summary
12. Multimedia
Working with Audio
Audio Playback
Audio Recording
Working with Video
Video Playback
Summary
13. Optional Hardware APIs
Bluetooth
Enabling Bluetooth
Discovering Devices with Bluetooth
Connecting via Bluetooth Classic
Communicating with BLE
Near Field Communication
ACTION_NDEF_DISCOVERED
ACTION_TECH_DISCOVERED
ACTION_TAG_DISCOVERED
Device Sensors
Detecting the Available Sensors
Reading Sensor Data
Summary
14. Managing Account Data
Getting Accounts
Android Backup Service
Using Google Drive Android API
Using Google Play Games Services
Working with Saved Games
Summary
15. Google Play Services
Adding Google Play Services
Using Google API Client
Google Fit
Enable API and Authentication
App Configuration and Connection
Nearby Messages API
Enabling Nearby Messages
Sending and Receiving Messages
Summary
16. Android Wear
Android Wear Basics
Screen Considerations
Debugging
Connecting to an Emulator
Connecting to a Wear Device
Communicating with Android Wear
Notifications
Sending Data
Summary
17. Google Analytics
Adding Google Analytics
Google Analytics Basics
Events
Goals
Ecommerce
Custom Timings
Custom Dimensions
Custom Metrics
Summary
18. Optimization
Application Optimization
Application First
Application Logging
Application Configuration
Memory Management
Garbage Collection Monitoring
Checking Memory Usage
Performance
Working with Objects
Static Methods and Variables
Enhanced for Loops
float, double, and int
Optimized Data Containers
Summary
19. Android TV
The Big Picture
Ten-Foot View
TV Capabilities
Text, Color, and Bitmaps
Building an App
Emulation and Testing
Summary
20. Application Deployment
Preparing for Deployment
Production Checklist
Certificate Keys
Contact Email
App Website
External Services or Servers
Application Icon
Licensing
Appropriate Package Name
Verifying Permissions and Requirements
Log and Debug Removal
Removal of Excess Unused Assets
Preparing for Google Play
Application Screenshots
Promo Video
High-Res Icon
Feature Graphic
Promo Graphic
Banner for Android TV
Getting Paid
APK Generation
Summary
Index
Code Snippets
← Prev
Back
Next →
← Prev
Back
Next →