Application component

329
-1

Published on

it is just basic components of android .

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
329
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Application component

  1. 1. INTRODUCTION TO APPLICATION COMPONENT OF ANDROID<br />
  2. 2. APPLICATION COMPONENT OF ANDROID <br />ANDROID IS THE OPERATING SYSTEM OF MOBILE AND IT IS BASED ON SOME OF THE IMPORTANT CONCEPT KNOWN AS BASIC APPLUICATION COMPONENT OF ANDROID.<br />EACH COMPONENET IS ACT AS AN ENTRY POINT IN APPLICATION FOR THE BUILDING BLOCKS.<br />THERE ARE FOUR APPLICATION COMPONENTS OF ANDROID ACCORDING TO WHICH ANDROID WORKS AND BUILDING BLOCKS ARE AS FOLLOWS<br />1.ACTIVITIES.<br />2.SERVICES.<br />3.CONTENT PROVIDER .<br />4.BROADCAST RECIVER.<br />
  3. 3. ACTIVITY<br />ACTIVITY IS NOTHING BUT AN USER INTERFACE REQUIRED TO USER FOR INTERACTION WITH AN APPLICATION.<br />IN SIMPLE TERM IT PROVIDES A SCREEN TO USER FOR APPLICATION. TO DO OR TO PERFORM A PARTICULAR ACTIVITY EX.SUCH AS DOING EMAILS AND TAKING PHOTOS ,THERE ARE LOT OF OTHER EXAMPLES FOR IT .<br /> FLOW OF THE ACTIVITY DIAGRAM IS GIVEN IN NEXT SLIDE IT SHIWS ALL THE FLOW OF ACTIVITY HAPPENING OR ACTING .<br />IT START WITH ONCREATE METHOD AND ENDS ON ONDESTROY METHOD.<br />
  4. 4.
  5. 5. SERVICES<br />SERVICE IS NOTHING BUT AN COMPONENT RUNS IN BACKGROUND WHEN ANY OTHER ACTIVITY IS GOING ON .<br />EX: USER CAN PLAY MUSIC IN BACKGROUND WHILE DOING SOME OTHER WORK .<br />ANOTHER COMPONENT, SUCH AS AN ACTIVITY, CAN START THE SERVICE AND LET IT RUN OR BIND TO IT IN ORDER TO INTERACT WITH IT.<br />IT IS ONE OF THE IMPORTANT FUNCTION FOR MULTITASKING IN ANDROID . <br />
  6. 6. CONTENT PROVIDER<br />Content provider stores data and retrieve it and make it accessible to all the application.<br />There is no common area for storage purpose of android packages. <br />Android ships with a number of content providers for common data types such as audio, video, images, personal contact information etc.<br />If you want to make your own data public, you have two options: You can create your own content provider or you can add the data to an existing provider — if there's one that controls the same type of data and you have permission to write to it.<br />
  7. 7. Broadcast Receiver<br />A broadcast receiver is a component that responds to system-wide broadcast announcements.<br />Although broadcast receiver do not take part in user display but they may create a status bar notification to alert the user when broadcast event is occurs.<br />
  8. 8. This are just glimpsing of android there is more yet to come .<br /> Thank you<br />

×