You are previewing Expert Android.
O'Reilly logo
Expert Android

Book Description

From the leading publisher of Android books, Apress' Expert Android gives you advanced techniques for customizing views, controls, and layouts. You'll learn to develop apps in record time using JSON, Advanced Form Processing, and the BaaS (Backend As A Service) platform Parse. The book also includes extensive coverage on OpenGL, Search, and Telephony. With these advanced and time saving technologies you'll be able to release compelling mobile applications in Google Play and the Amazon Appstore at a rapid pace.

In Expert Android, you'll learn to:

  • Borrow, reuse, or build custom Android UI components

  • Create 3D experiences using OpenGL ES 2.0

  • Write collaborative applications in the Parse cloud and communicate with your app user community through Parse Push Technology

  • Reduce the time-to-market while creating rock solid apps for multiple devices

Whether you are an individual or enterprise developer, in Expert Android you'll find the advanced techniques and practices to take your mobile apps to the next level. Regardless of the Android release, this book serves as your definitive, capstone reference for your Apress Android experience.

What you'll learn

  • How to deliver impactful Apps cheaper, better, and faster.

  • How to develop for multiple devices and manage fragmentation in Android

  • How to use Parse cloud for Storage, Collaborative Social Apps, and Push notifications

  • How to create Custom Views, Controls, and Layouts

  • How to create 3D experience with OpenGL ES 2.0

  • How to achieve speed to market through JSON, Form processing, and Parse

  • How to eliminate memory leaks and poor-performing code

Who this book is for

This book is for advanced Android app developers who have read/used Pro Android already by the very same authors that bring you Expert Android.

Table of Contents

  1. Title Page
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Authors
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
  9. Chapter 1: Exploring Custom Views
    1. Planning a Custom View
    2. Nature of Drawing in Android
    3. Implementing Measure Pass
    4. Implementing Drawing through onDraw( )
    5. Responding to Events
    6. Saving View State
    7. Custom Attributes
    8. Complete Source Code for the Custom View
    9. References
    10. Summary
    11. Review Questions
  10. Chapter 2: Exploring Compound Controls
    1. Planning a Duration Compound Control
    2. Deriving from an Existing Layout
    3. Creating the Layout file for the Compound Control
    4. Specifying DurationControl in an Activity Layout
    5. Working with Fragment Dialogs
    6. Invoking Fragment Dialogs
    7. Managing the View State for a Compound Control
    8. Creating Custom Attributes for DurationControl
    9. Extending an Existing View
    10. Implementation Detail of DurationControl
    11. References
    12. Summary
    13. Review Questions
  11. Chapter 3: Principles and Practice of Custom Layouts
    1. Contrasting Custom Layouts
    2. Planning a Simple Flow Layout
    3. Deriving from the ViewGroup Class
    4. Working with onMeasure( )
    5. Implementing onLayout( )
    6. Defining Custom LayoutParams
    7. Source Code for FlowLayout
    8. References
    9. Summary
    10. Review Questions
  12. Chapter 4: JSON for On-Device Persistence
    1. Data Storage Options in Android
    2. General Approach to Using JSON for Persistence
    3. Working with GSON
    4. Using Shared Preferences for JSON Persistence
    5. Saving/Restoring Objects Using GSON in Shared Preferences
    6. Using Internal Storage for JSON
    7. Storing JSON on External Storage
    8. Using SQLite for Structured Storage
    9. References
    10. Summary
    11. Review Questions
  13. Chapter 5: Programming for Multiple Devices
    1. Different Screen Densities
    2. Different Screen Sizes
    3. Different Qualifiers Beyond Screens
    4. Different Hardware Features
    5. Different Versions of Android
    6. References
    7. Summary
    8. Review Questions
  14. Chapter 6: Advanced Form Processing
    1. Planning Form-Based Application
    2. General Steps for Form Validation
    3. Designing a BaseActivity
    4. Design and Implementation of the FormActivity
    5. Implementing the SignupActivityTestForm
    6. Improvements to Creating Form-Based Activities
    7. References
    8. Summary
    9. Review Questions
  15. Chapter 7: Using the Telephony APIs
    1. Working with SMS
    2. Working with the Telephony Manager
    3. Session Initiation Protocol (SIP)
    4. References
    5. Summary
    6. Review Questions
  16. Chapter 8: Advanced Debugging and Analysis
    1. Enabling Advanced Debugging
    2. The Debug Perspective
    3. The DDMS Perspective
    4. Traceview
    5. Putting Your Debugging Skills to the Test
    6. The Hierarchy View Perspective
    7. The adb Command
    8. The Emulator Console
    9. StrictMode
    10. References
    11. Summary
    12. Review Questions
  17. Chapter 9: Programming 3D Graphics with OpenGL
    1. Fundamentals of OpenGL
    2. Interfacing OpenGL ES with Android
    3. Braving OpenGL: Shapes and Textures
    4. OpenGL ES 2.0
    5. References
    6. Summary
    7. Reveiw Questions
  18. Chapter 10: Introduction to Android Search
    1. Exploring Android Global Search
    2. Enabling Searchable Applications for Global Search
    3. Activities and Search Key Interaction
    4. Using SearchView in the Action Bar
    5. References
    6. Summary
    7. Review Questions
  19. Chapter 11: Simple Search Suggestion Provider
    1. Planning a Simple Suggestion Provider
    2. Implementing the Simple Suggestion Provider
    3. Search Results Activity
    4. Exploring Search Metadata
    5. Search Invoker Activity
    6. Simple Suggestion Provider User Experience
    7. References
    8. Summary
    9. Review Questions
  20. Chapter 12: Custom Search Suggestion Provider
    1. Planning the Custom Suggestion Provider
    2. Implementing the custom SuggestUrlProvider
    3. Exploring Search Metadata
    4. Implementing the Search Activity
    5. Using Action Keys and Application-Specific Search Data
    6. References
    7. Summary
    8. Review Questions
  21. Chapter 13: Introduction to Cloud Storage with Parse
    1. Planning a Sample Parse Application
    2. Exploring Parse Basics
    3. Setting up a Parse-Enabled Android Application
    4. Implementing the Sample Application
    5. What’s Next
    6. References
    7. Summary
    8. Review Questions
  22. Chapter 14: Enhancing Parse with Parcelables
    1. User Experience of the Sample Application
    2. Passing ParseObjects as Parcelables
    3. Implementing Parcelable ParseObjectWrapper
    4. Parceling the Word
    5. Implementing the Word Meanings List Activity
    6. Creating the Meaning for a Word
    7. References
    8. Summary
    9. Review Questions
  23. Chapter 15: Exploring Push Notifications with Parse
    1. Demonstrating Parse Push Notifications
    2. Implementing Parse Push
    3. References
    4. Summary
    5. Review Questions
  24. Index