Android – Application Components

Application components are the essential building blocks of an Android application. These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each component of the application and how they interact.

There are following four main components that can be used within an Android application −

  • Activities
  • Services
  • Broadcast Receivers
  • Content Providers

Activity

An activity is a class that represents a single screen. It is like a Frame in AWT.

Service

Service is a background process that can run for a long time. There are two types of services local and remote.

Broadcast Receivers

Broadcast Receivers simply respond to broadcast messages from other applications or from the system.

Content Provider

Content Providers are used to share data between the applications. For further reading, please visit http://www.jsinformatics.comandroid-application components

Leave a comment