Exploring Android Components: Activities, Services, Broadcast Receivers & More
Components of Android This post describes the four main components of Android. This will be useful for people who like to learn about the basics of Android. Read further, you'll find it useful too. Components of Android Activity An activity represents the visual representation of an Android application. User interacts with the screen provided by the activity. Typically, an activity hosts a view, which can be an application-specific view or a system-provided view. Activities use views. An activity is associated with a window and covers the entire screen. An application needs to have at least one main activity to start but can have a number of other activities—roughly one per screen. Activities are organized in a stack and when a new activity starts, it goes to the top of the stack. Users can then navigate through the stack using the Back button. ...