Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tomecki.counterpushups;
- import android.content.BroadcastReceiver;
- import android.content.Context;
- import android.content.Intent;
- import android.util.Log;
- public class Autostart extends BroadcastReceiver {
- public void onReceive(Context arg0, Intent arg1) {
- Intent intent = new Intent(arg0, MyService.class);
- arg0.startService(intent);
- Log.i("Autostart", "started");
- }
- }
Add Comment
Please, Sign In to add comment