title: Android - Access location in background without opening app
body: <p>I'm relatively new to using location services in Android, and I am wondering how it is possible to have my app check my location (without opening the app) and executing some code, for example based on if my latitude or longitude is greater than 50. Is there a common way of running the app (including location services) in the background?</p>