Limitation of Liability/Warranty Disclaimer: The publisher and the author make no representations or warranties as to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including but not limited to warranties of fitness for a certain goal. This work is sold with the understanding that the publisher is not engaged in providing legal, accounting, or other professional services. The fact that an organization or website is referenced in this work as a quote and/or as a potential source of further information does not mean that the author or publisher endorses the information that the organization or website provides or makes any recommendations. .
In addition, readers should be aware that Internet websites referenced in this work may have changed or disappeared between the time this work was written and when it was read. Some materials included in standard print versions of this book may not be included in e-books or print-on-demand. If this book refers to media such as a CD or DVD that is not included with the version you purchased, you can download that material at http://booksupport .wiley.com.
John Wiley & Sons, Inc., is not associated with any product or supplier mentioned in this book. You can find out far too much about Reto's interests and hobbies on his website, The Radioactive Yak (http://blog.radioactiveyak.com), or on Google+ (http://profiles . .google.com/reto). meier) or Twitter (www.twitter.com/retomeier), where he shares more than he probably should.
Hello, Android
Getting Started
Creating Applications and Activities
Building User Interfaces
Intents and Broadcast Receivers
Using Internet Resources
Files, Saving State, and Preferences
Creating a Standard Seismic Viewer Preference Activity 238 Maintaining Application Instance State 242 Saving Activity State Using Shared Preferences 242 Saving and Restoring Activity Instance State .
Databases and Content Providers
Support for content provider search suggestions 298 Displaying search results in the quick search box 301 Creating a 301 searchable earthquake content provider.
Working in the Background
Using Repetitive Alarms to Schedule Network Refreshes 354 Using the Intent Service to Simplify the Earthquake.
Expanding the User Experience
Handling and Displaying Dialogs Using Dialog Fragments 398 Handling and Displaying Dialogs Using Activity Event Handlers 400. Creating a Message and Configuring the Status Bar Display 407 Using the Default Notification Sounds, Lights, and Vibrations 408. Confi guring Lights and Figures. 415 Triggering, Updating, and Canceling Notifications 416 Adding Notifications and Dialog Boxes to Earthquake Monitor 418 .
Advanced User Experience
Hardware Sensors
Maps, Geocoding, and Location-Based Services
Invading the Home Screen
Surface Application Search Results Using the Quick Search Box 614 Surface Search Results in the Quick Search Box 614 Adding Earthquake Example Search Results to.
Audio, Video, and Using the Camera
Bluetooth, NFC, Networks, and Wi-Fi
Telephony and SMS
Advanced Android Development
Monetizing, Promoting, and Distributing Applications
Google's Answer to the iPhone -- The iPhone is a completely proprietary hardware and software platform released by a single company (Apple), while Android is open source. The Android APIs - At the core of the SDK are the Android API libraries that give developers access to the Android stack. Developer Tools — The SDK includes several developer tools that help you compile and debug your applications, allowing you to turn Android source code into executable applications.
Android Virtual Device Manager and Emulator - Android Emulator is a fully interactive mobile device emulator that features several alternative skins. Complete Documentation - The SDK includes extensive code-level reference information, detailing exactly what is included in each package and class and how to use them. Sample Code — The Android SDK includes a selection of sample apps that demonstrate some of the capabilities available with Android, as well as simple programs that highlight how to use individual API features.
Android Runtime — The runtime is what makes an Android phone an Android phone and not a mobile Linux implementation. As of SDK 1.6 (API level 4), the default value for each attribute is true, so use this node to specify unsupported screen sizes. Each menu definition is stored in a separate file, each containing one menu, in the res/menu folder — the filename then becomes the resource identifier.
Mobile country code and mobile network code (MCC/MNC) — The country, and optionally the network, associated with the SIM card currently used in the device. Smallest Screen Width — The smallest screen dimensions of the device (height and width) specified in the form sw
Available Screen Height — The minimum screen height required to use the contained resources, specified in the form h
Suspend UI updates, threads, or CPU intensive processes // that don't need updating when the activity is not // the active foreground activity. FrameLayout — The simplest of the Layout Managers, the Frame Layout locks each underlying view into its frame. Suspend UI updates, threads, or CPU intensive processes // that don't need updating when the activity is not // the active foreground activity.
In this example, you split the user interface into a series of fragments that represent its component parts: the text input box and the cue list.