21 Jan 2021

Android Components - Activity • Service • Content Provider • Broadcast Reciver


Android framework components

Android components are useful for making android application. In other words, Android components are block building of android application.


All components which you have used in your application. It is mandatory to register these components in Android Manifest.xml file.

There are 4 main android components. these components are listed below.

Activity - It is screen window in which we interact with android app user interface (UI). The UI you see, it an instance of android.app.Activity class.

Service - it is used whenever you have to work with long duration running task.

Content Provider - it is used to get data from database or put/save data to database.

Broadcast Receiver - it stablish a communication between user app and android Framework.

Additional Components


Reaction:

No comments:

No Comments

COMMENT FROM MESSAGE