I've created an app (for personal use) that collects device battery information and saves it to a log file. Unfortunately, I had to use a sticky service because the sampling time I need is 100 ms (and the "StartServiceAtExact" does not work very well for rates less than 1000 ms).
Of course, the system will "kill" the service. So far so good, this is expected. The problem is that once the service is "killed" (or simply removed from the recent app list), I can not get the main layout loaded.
I do not understand why after "killed", the service restarts but I can not get a return to "Activity_Create", ie even though I call the "Main" with StartActivity, the does not load the layout, because the "Activity "is not created. I can only restart everything right if I go there in the Android settings and force the app/service to stop.
Any idea?