I have a service launched from Activity, the service is working fine onCreate , onStartCommand , called correctly. In the settings → the application works with its showing 1 process and 1 service .
Now that I have removed my application from the recent list of applications. The service is recreated. In the settings → the application is running, it shows 0 process and 1 service restarting... And onCreate , onStartCommand , onTaskRemoved .
Now the problem is one onTaskRemoved application, called right after you open the application, and then onCreate , and in another onTaskRemoved application, onTaskRemoved takes time and onCreate called after onCreate .
Why does this other behavior exist? Any suggestion will help me. Please provide your comments and comments.
08-26 15:43:48.611: D/PassiveService(15359): PASS_IVE, onCreate... 08-26 15:43:48.611: I/PassiveService(15359): PASS_IVE, registerReceivers...
After scrolling
08-26 15:44:05.789: D/PassiveService(15499): PASS_IVE, onCreate... 08-26 15:44:05.809: I/PassiveService(15499): PASS_IVE, registerReceivers... 08-26 15:44:05.839: I/PassiveService(15499): PASS_IVE, onTaskRemoved...
android kill-process android-service
umesh Aug 26 '15 at 10:32 2015-08-26 10:32
source share