hi
i would like to start a Service that will kill my app after x minutes.
i am using ActivityManager for that but nothing happens.
i have added the needed permission to manifest and i am also checking that the activity is running before i try to kill it but nothing happens.
i am using android 6+.
i have also read here in some threads that others have the same issue.
is it at all possible to kill an app from a service? and also if it is the app that started that service?
i found this: http://stackoverflow.com/questions/9563404/kill-another-process-application-programmatically
i would like to start a Service that will kill my app after x minutes.
i am using ActivityManager for that but nothing happens.
i have added the needed permission to manifest and i am also checking that the activity is running before i try to kill it but nothing happens.
i am using android 6+.
i have also read here in some threads that others have the same issue.
is it at all possible to kill an app from a service? and also if it is the app that started that service?
i found this: http://stackoverflow.com/questions/9563404/kill-another-process-application-programmatically