What is the best solution for collecting location info in the background?
<p>I want to make an application that gets the phone location each 30 min and save it to a DB (and transmits to a webserver).</p>

<p>The application should be running in the background for a few hours while the user can be doing other things with his phone (games, calls...)</p>

<p>Can someone please advice what is the best solution for this project? (Service? AlermManager?) </p>
