What is Android Content Providers for? Explain its Additional Components.
Android Content Providers
In android, Content
Providers are used to
exchange the data between the apps based on the requests. The Content Providers can share the app data that store in
the file system, SQLite database, on the web or any other storage location that our app can
access.
By using Content
Providers, other apps can query or modify the
data of our app based on the permissions provided by content provider. For
example, android provides a Content Provider (ContactsContract.Data) to
manage contacts information, by using proper permissions any app
can query the content provider to perform read and write operations on contacts
information.
Additional Components
In android, we have an additional
components which are used to build the relation between above components (Activities, Intents, Content
Providers, Services and Broadcast
Receivers) to implement our application
logic, those are
Component |
Description |
Fragments |
These
are used to represent the portion of user interface in an activity |
Layouts |
These are used to define the user
interface (UI) for an activity or app |
Views |
These
are used to build user interface for an app using UI elements like buttons,
lists, etc. |
Resources |
To build android app we required
external elements like images, audio files, etc. other than coding |
Manifest File |
It’s
a configuration file (AndroidManifest.xml) for the application and it
will contain the information about Activities, Intents, Content Providers, Services, Broadcast Receivers, permissions, etc. |
No comments