Course Content

Course Content


What is System Broadcast

System broadcast is also known as Static broadcast. We use this concept in our day to day phone usage.

For example, when we use our phone and when our phone reaches a certain level of battery percentage, like 4%, name suddenly a notification will come that saying 'Battery Low, please plugin the charger', so this is nothing but a type of a system broadcast.

We use intent filters to generate system broadcast. And three things which are important in system broadcast are, ACTION, DATA, CATEGORY.


This is mandatory part of the intent object and is a string naming the action to be performed - or, in the case of broadcast intents, the action that took place and is being reported.

For example when we launch any application, there will be a main activity of that particular application, we can call it as a Welcome screen of application.


List of Android Intent Standard Actions





Start as a main entry point, does not expect to receive data.


Displays the data to the user.


This broadcast corresponds to thr “Low Battery warning” system dialog.


The OS broadcasts it once, after the system has finished booting.



The category is an optional part of intent object and it's a string containing additional information about the kind of component that should handle the intent.


List of Android Intent Standard Categories





Provides information about the package it is in.


Should be displayed in the top-level launcher.


This is the home activity, that is the first activity that is displayed when the device boots.


This activity allows the user to browse and download new applications.



Adds a data specification to an intent filter. The specification can be just the data type (the MIME type attribute).

Just a URI, or both data type and a URI.

  • The setData() method specifies data only as a URI.
  • setType() specifies it only as a MIME
  • setDataAndType() specifies it as both a URI and a MIME
  • The URI is read by getData() and the type by getType().



ACTION_VIEW content://contacts/people/1 Display information about the person whose identifier is “1”.


ACTION_DIAL content://contacts/people/1 Display the phone dialer with the person filled in.


ACTION_VIEW tel:123 Display the phone dialer with the given number filled in.


System Broadcasts





Boot completed.


Triggered on low battery. Typically used to reduce activities in your app which consume power.


Power got connected to the device.


Power got disconnected to the device.


This all readymade events are added to System broadcast because they are not dynamically generated by user, according to device's performance they should be generated automatically.

  • For this you can register a receiver for the

android.intent.action.BOOT_COMPLETED system event.

  • This requires the

android.permission.RECEIVE_BOOT_COMPLETED permission.


public class MyReceiver extends Broadcast Receiver.



                public void onReceive(Context context, Intent intent)


                                Toast.makeText(context,”Intent Detected.”,





Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
297K+ Downloads
App Download Section Circle 1
4.5 Rating
App Download Section Circle 2
10K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere