How do I get the current GPS location programmatically in Android?

前端 未结 22 2652
梦谈多话
梦谈多话 2020-11-21 04:42

I need to get my current location using GPS programmatically. How can i achieve it?

22条回答
  •  醉酒成梦
    2020-11-21 04:53

    If you are creating new location projects for Android you should use the new Google Play location services. It is much more accurate and much simpler to use.

    I have been working on an open source GPS tracker project, GpsTracker, for several years. I recently updated it to handle periodic updates from Android, iOS, Windows Phone and Java ME cell phones. It is fully functional and does what you need and has the MIT License.

    The Android project within GpsTracker uses the new Google Play services and there are also two server stacks (ASP.NET and PHP) to allow you to track those phones.

提交回复
热议问题