freePRnow.com Plans | Login    

Author Details
9apps
9app.co.in/

Four components are the essential building blocks of an Android app


When you talk about any application store like 9Apps, which is the hottest right now, you must know that components are the essential building blocks of an Android 9app and there are four different types of app components.

freePRnow.com, 9/19/2016 - When you talk about any application store like 9Apps, which is the hottest right now, you must know that components are the essential building blocks of an Android 9app and there are four different types of app components. First is activity that represents a single screen with a user interface. Let us take an example of an email app that might have one activity that shows a list of new emails, another activity to compose an email, and another activity for reading emails. Although the activities work together to form a cohesive user experience in the email app, each one is independent of the others. Second is a servicecomponent that runs in the background to perform long running operations or to perform work for remote processes. A service does not provide a user interface. For example, a service might play music in the background while the user is in a different 9app, or it might fetch data over the network without blocking user interaction with an activity. Another component, such as an activity, can start the service and let it run or bind to it in order to interact with it. Next is a content provider, which manages a shared set of app data. You can store the data in the file system, an SQLite database, on the web, or any other persistent storage location your app can access. Through the content provider, other apps can query or even modify the data (if the content provider allows it). For example, the Android system provides a content provider that manages the user's contact information. As such, any 9app with the proper permissions can query part of the content provider to read and write information about a particular person. Content providers are also useful for reading and writing data that is private to your app and not shared. And last component is a broadcast receiver component that responds to system wide broadcast announcements. Many broadcasts originate from the system. 9Apps can also initiate broadcasts, for example, to let other apps know that some data has been downloaded to the device and is available for them to use. Although broadcast receivers don't display a user interface, they may create a status bar notification to alert the user when a broadcast event occurs. More commonly, though, a broadcast receiver is just a "gateway" to other components and is intended to do a very minimal amount of work.

http://9app.co.in/

 

Plans | FAQs | Contact Us | Terms & Conditions | Privacy Policy