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?
Asked
Active
Viewed 134 times
2 Answers
1
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.

Greg Ennis
- 14,917
- 2
- 69
- 74
0
Yes it is possible by using Services
and AlarmManager
classes to trigger application in background.
Check my answer here

Community
- 1
- 1

Himanshu Agarwal
- 4,623
- 5
- 35
- 49