Summary

The focus of this chapter has been on binding your application components.

Intents provide a versatile messaging system that lets you pass intentions between your application and others, to perform actions and signal events. You learned how to use implicit and explicit Intents to start new Activities, and how to populate an Activity menu dynamically through runtime resolution of Activity Intent Filters.

You were introduced to broadcast Intents, and saw how they can be used to send messages throughout the device, particularly to support an event-driven model based on system- and application-specific events.

You learned how to use sub-Activities to pass data between Activities, and how to use Dialogs to display information and facilitate user input.

Adapters were introduced and used to bind underlying data to visual components. In particular you saw how to use an Array Adapter and Simple Cursor Adapter to bind a List View to Array Lists and Cursors.

20,46: 3.3 Aiaska Peninsula

0 16/12/2009 18:54:43

Mangilude 5,1 Tonga

00.36: 5.6 Kermadec Islands region

11.46: 4.9 Banda Sea 08,49:4.9 Kepulauan Talaud

FIGURE 5-7

Finally, you learned the basics behind connecting to the Internet and using remote feeds as data sources for your native client applications.

You also learned:

> To use linkify to add implicit Intents to Text Views at run time.

> Which native Android actions are available for you to extend, replace, or embrace.

> How to use Intent Filters to let your own Activities become handlers for completing action requests from your own or other applications.

> How to listen for broadcast Intents using Broadcast Receivers.

> How to use an Activity as a dialog box.

In the next chapter you will learn how to persist information within your applications. Android provides a number of mechanisms for saving application data, including files, simple preferences, and fully featured relational databases (using the SQLite database library). Chapter 6 will focus on using Preferences and saving Activity state, while Chapter 7 will examine Content Providers and SQLite databases.

Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide


Post a comment