Advertisement
sandro1234

recievebroadcast.java

Sep 10th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package tk.khokho.broadrecievr;
  2.  
  3. import android.content.BroadcastReceiver;
  4. import android.content.Context;
  5. import android.content.Intent;
  6. import android.widget.Toast;
  7.  
  8. public class RecieveBroadcast extends BroadcastReceiver {
  9.     public RecieveBroadcast() {
  10.     }
  11.  
  12.     @Override
  13.     public void onReceive(Context context, Intent intent) {
  14.         // TODO: This method is called when the BroadcastReceiver is receiving
  15.         // an Intent broadcast.
  16.         Toast.makeText(context, "Broadcast has been recieved", Toast.LENGTH_LONG).show();
  17.        // throw new UnsupportedOperationException("Not yet implemented");
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement