Advertisement
slaer

BroadcastReceiver_MyApp

Jan 29th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class DoItReceiver extends BroadcastReceiver {
  2.  
  3.     @Override
  4.     public void onReceive(Context context, Intent intent) {
  5.         // TODO: This method is called when the BroadcastReceiver is receiving
  6.         // an Intent broadcast.
  7.         context.startService(new Intent(context, DoIT.class));
  8.     }
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement