Guest User

Untitled

a guest
Dec 5th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package com.tomecki.counterpushups;
  2.  
  3. import android.content.BroadcastReceiver;
  4. import android.content.Context;
  5. import android.content.Intent;
  6. import android.util.Log;
  7.  
  8. public class Autostart extends BroadcastReceiver {
  9.  
  10. public void onReceive(Context arg0, Intent arg1) {
  11. Intent intent = new Intent(arg0, MyService.class);
  12. arg0.startService(intent);
  13. Log.i("Autostart", "started");
  14.  
  15. }
  16. }
Add Comment
Please, Sign In to add comment