I’m developing an application on Xamarin (Android) and i have a problem related to the life time of the application.
I need that the app I’m developing, run on the device for some days (for example, 3, 4 or more).
What I have tried:
To do that, I already implemented Android Service that are making the App run on device, for a long time, without stop, and executing the pretending operations. The problem is the fact of the user execute more application on the device, causing low memory issues, that android deals with it, by killing running app to start new ones.
I already tried to implement the application as a GPS (cause Android, consider with high priority), but without success! Happening the same situation, of stopping running processes.
I think about an option that was the creation of a second application which check if the first one is running and case not, start. But it’s not very practical.
I would like to know if someone have a suggestions that can be useful to solve this problem?
Or if what I’m trying to do, it’s not possible to do in one application?