Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.prodev.litetrack;
- import java.util.Timer;
- import java.util.TimerTask;
- import android.content.BroadcastReceiver;
- import android.content.Context;
- import android.content.Intent;
- import android.util.Log;
- public class BootReceiver extends BroadcastReceiver {
- @Override
- public void onReceive(Context ctx, Intent intent) {
- Log.i("BOOM", "System booted");
- Intent service = new Intent(ctx, MainActivity.class);
- ctx.startService(service);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement