How to write a background service to get latitude and longitude?
I need to write a back开发者_开发百科ground service to get latitude and longitude values. I have an Android application in which it has to find where the user is currently. Is there any way to programmatically get the latitude and longitude values from the system services (or some program)?
Use LocationManager
. The documentation covers this.
精彩评论