Components of an Android Application

 
              Components of an Android Application


Android components are the essential part of Android operating system.We can say that these components are the wheel of android which helps them to meet users expectation ,without these components we cannot imagine the existence of Android Operating system. So, there is no doubt to say that it is the building block of android.


You can find these all components in manifest.xml file. They are basically divided into four types namely Activities, Services, Content Providers and Broadcast Receivers.



1.    Activities: - The screen with User Interface components(means on which user can perform some action) and User Interaction is called an Activity. It is the combination of java and xml files.
Example: - your lock screen, your contacts screen, screen of calculator in your mobile etc.


2. Services:-  It’s definition is little bit same as of activity but working is totally different. A service is also an activity but it don’t provide user interaction , it performs task in the background and is also called the long running process (in the background of any application).
Why it is called long running process because when it enable, it keeps fetching the data , it will not stop after fetching data. The only way to stop is to disable it.
 Example :- When you on Wifi or Bluetooth option in your mobile , it continues fetching the devices until that options are not turned off.

3.    Content Provider :- It is the main component out of the four it provide two functionalities , first it helps to manage the data in mobile phone secondly, as the name suggest it provides or transfer content or data from one application to another .

4.    Broadcast Receivers:- You might have noticed when you download something from internet or whenever your mobile is plugged in for charging you get a notification . This all is done by Broadcast Receiver.  These broadcast messages are send by the system and any another application. It makes us aware of any new interruption or information in our mobile phone.

Another component of Android:-
With these components you might have seen a lots of other components in android manifest.xml file(which is the boss of your app) some of these are following :
Intent :- It is used to navigate from one activity to another.
Fragments :-  It is a sub activity which represent the portion of User Interface.
(we will have a detail look on it, in upcoming posts)
-------------------------------------------------------------------------



So, this was all about ”Components of Android Application”.For any query feel free to comment.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  

Comments

Post a Comment