LeOS-Genesis/app/src/main/java/com/darkweb/genesissearchengine/helperManager/clearAllRecentServices.java

36 lines
936 B
Java
Raw Normal View History

2021-02-03 11:54:19 +01:00
package com.darkweb.genesissearchengine.helperManager;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import com.darkweb.genesissearchengine.constants.status;
2021-05-14 14:43:40 +02:00
public class clearAllRecentServices extends Service {
2021-02-03 11:54:19 +01:00
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
return START_NOT_STICKY;
}
@Override
public void onDestroy() {
status.sSettingIsAppStarted = false;
super.onDestroy();
android.os.Process.killProcess(android.os.Process.myPid());
System.exit(1);
}
@Override
public void onTaskRemoved(Intent rootIntent) {
status.sSettingIsAppStarted = false;
stopSelf();
super.onDestroy();
android.os.Process.killProcess(android.os.Process.myPid());
System.exit(1);
}
}