Intents and services

4.1 Working with Intent classes 98

Defining intents 99 ■ Intent resolution 102 ■ Matching a custom URI105 ■ Using Android-provided activities 109

4.2 Listening in with broadcast receivers 110

Overloading the Intent concept 110 ■ Creating a receiver 112

4.3 Building a Service 113

Dual-purpose nature of a Service 113 ■ Creating a background task Service 114

4.4 Performing Inter-Process Communication 117

Android Interface Definition Language 117 ■ Exposing a remote interface 120 ■ Binding to a Service 120 ■ Starting versus binding 122 ■ Service lifecycle 123 ■ Binder and Parcelable 124

4.5 Summary 125

0 0

Post a comment