O'Reilly logo

Pro Android 4 by Satya Komatineni, Dave MacLean

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Android Components and Threading

As you have gathered by now from many of the previous chapters, an Android process has four primary components:

  • Activity
  • Service
  • ContentProvider (often referred as just a provider)
  • BroadcastReceiver (often referred as just a receiver)

Most code you write in an Android application is part of one of these components or called by one of these components. Each of these components gets its own XML node under an application node specification in the Android project manifest file. To recall, here are these nodes:

<application>      <activity/>      <service/>      <receiver/>      <provider/> </application>

With some exceptions (such as external process calls to content providers), Android uses the same thread to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required