How to know when my app has been killed?
I have found one way to do this….. Make one service like this public class OnClearFromRecentService extends Service { @Override public IBinder onBind(Intent intent) { return null; } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.d(“ClearFromRecentService”, “Service Started”); return START_NOT_STICKY; } @Override public void onDestroy() { super.onDestroy(); Log.d(“ClearFromRecentService”, “Service Destroyed”); } @Override … Read more