@Override public int onStartCommand(Intent intent, int flags, int startId) { Log.i("ManifestCheckerService", "onStartCommand"); startCheck(); // If we get killed, after returning from here, restart return START_STICKY; }
void doCheck(ManifestCheckerCallback cb) { mCallback = cb; startCheck(); }