![]() ![]() 3) Content ProvidersĬontent providers provide a level of abstraction for any data stored on the device that is accessible by ‘multiple’ applications. media player) is no longer operating on front screen. You might use a service for checking for updates to an RSS feed, or to play back music even if the controlling activity (i.e. Services, on the other hand, are designed to keep running, if needed, independent of any activity inside application, for a short period of time. Android Activities 2) ServicesĪctivities are short-lived and can be shut down at any time, such as when the user presses the BACK button or HOME button. Remember this term, you will be using it in every step of your app development. Just like in windows where an application takes most of screen apart from toolbar strip, activity also leave area on mobile device screen only for strip on top contain device clock, signal strength indicators etc. ![]() You can think of an activity as an user interface as you see in classic windows application. The major building block of the user interface is called activity. Below are major 4 components you should know before hand: 1) Activities The subclasses you create, by extending base classes supplied by Android, are called components. you extend some specific classes and define your configuration in some XML file and you are good to start your first android app. You extend a class and write some code in it and then something passes control to your servlet and it start executing.Īndroid takes the second approach i.e. Similarly, when you entered into web programming area, normally you will learn/write the http servlet first. You wrote a main() method and some print statement then some magic happened and output was written in console. Remember when you started learning java, your first program was ‘ Hello World‘ application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |