Description

Copyright 2013

Dimensions: 7" x 9-1/8"

Pages: 696

Edition: 1st

eBook (Watermarked)

ISBN-10: 0-13-315175-1

ISBN-13: 978-0-13-315175-6

Android Programming Unleashed is the most comprehensive and technically sophisticated guide to best-practice Android development with today's powerful new versions of Android: 4.1 (Jelly Bean) and 4.0.3 (Ice Cream Sandwich). Offering the exceptional breadth and depth developers have come to expect from the Unleashed series, it covers everything programmers need to know to develop robust, high-performance Android apps that deliver a superior user experience.

Leading developer trainer Bintu Harwani begins with basic UI controls, then progresses to more advanced topics, finally covering how to develop feature rich Android applications that can access Internet-based services and store data. He illuminates each important SDK component through complete, self-contained code examples that show developers the most effective ways to build production-ready code. Coverage includes: understanding the modern Android platform from the developer's standpoint… using widgets, containers, resources, selection widgets, dialogs, and fragments… supporting actions and persistence… incorporating menus, ActionBars, content providers, and databases… integrating media and animations… using web, map, and other services… supporting communication via messaging, contacts, and emails… publishing Android apps, and much more.

6 Displaying and Fetching Information Using Dialogs and Fragments 259What Are Dialogs? 259 AlertDialog 261 Methods of the AlertDialog.Builder Subclass 261 Getting Input via the Dialog Box 264 DatePickerDialog 267 TimePickerDialog 271Selecting the Date and Time in One Application 275Fragments 282 The Structure of a Fragment 282 The Life Cycle of a Fragment 282Creating Fragments with Java Code 294 FragmentManager 294 Communicating Between Fragments 296 Navigating to Previous Fragments 296 Retrieving Content Passed Through Bundle 297 Saving and Restoring the State of Fragments 297Creating Special Fragments 301 Creating a ListFragment 301 Using a DialogFragment 305 Using PreferenceFragment 311Summary 319

13 Creating and Consuming Services 591Moving Tasks to Background Threads 591 Using the Handler Class 592 Using the AsyncTask Class 594Accessing Data from the Internet 598 Consuming SOAP Services 602Creating a Service 607 Interacting with the Service 611Creating a Bound Service 614Setting Up Alarms 619 Setting Repeating Alarms 620 Setting Up the Time for the Alarm 620Using Sensors 626Summary 631

Updates

More Information

Get unlimited 30-day access to thousands of
Books & Training Videosabout technology, professional development and digital media
If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months.