Add the example for BroadCast Receiver (#26781)

This commit is contained in:
Anugrah Rochmat
2018-12-26 23:51:16 +07:00
committed by Christopher McCormack
parent 26a2cd76c9
commit 7accf8929b

View File

@ -159,7 +159,7 @@ There are three kinds of services:
![Services Lifecycle](https://developer.android.com/images/service_lifecycle.png) ![Services Lifecycle](https://developer.android.com/images/service_lifecycle.png)
### [Broadcast receivers](https://developer.android.com/guide/components/broadcasts) ### [Broadcast receivers](https://developer.android.com/guide/components/broadcasts)
A _Broadcast receiver_ is another component without user interface (except an optional status bar notification) that provides a gateway for the system to deliver events from/to the app, even when the latter hasn't been previously launched. A _Broadcast receiver_ is another component without user interface (except an optional status bar notification) that provides a gateway for the system to deliver events from/to the app, even when the latter hasn't been previously launched. For example, the Android system sends broadcasts when various system events occur, such as when the system boots up or the device starts charging.
### [Content providers](https://developer.android.com/guide/topics/providers/content-providers) ### [Content providers](https://developer.android.com/guide/topics/providers/content-providers)
A _Content provider_ is a component used to manage a set of app data to share with other applications. Each item saved in the content provider is identified by a URI scheme. A _Content provider_ is a component used to manage a set of app data to share with other applications. Each item saved in the content provider is identified by a URI scheme.
@ -168,4 +168,3 @@ For detailed information about the topic, see the official [Android fundamentals
### Advanced Android Development ### Advanced Android Development
To learn advanced Android programming concepts, see Google's [Advanced Android Development](https://developers.google.com/training/courses/android-advanced) course. To learn advanced Android programming concepts, see Google's [Advanced Android Development](https://developers.google.com/training/courses/android-advanced) course.