Question

I have a requirement where we need to get users location whether or not he opened the app. Is there any possible way we can do it in android?

Was it helpful?

Solution 2

Yes it is possible by using Services and AlarmManager classes to trigger application in background.

Check my answer here

OTHER TIPS

Do not use alarm manager. Use the new location services API (available all the way back to API 8) and request location updates. See Location Strategies for explanation and example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top