I am writing a Location service programming that when the user go outside a predefined zone, the App will create a Notification at task bar. I am suffering from the system killing my App Activity automatically.
After I hide the App by pressing Home button, the App Activity killed by system automatically after an hour. The problem is the user cannot get any notification after the Activity killed by system.
Note: My GPS code is in the Activity Class without creating a Thread for it.
Is it possible to solve the problem by using Service? Is it possible that the Service killed by system also?
Absolutely, create a service, put your code there, make sure it’s not too expensive (battery hog etc.) and that should do the job AndroidBegginer – i like the username good one