Get GPS Coordinates : Android

丶灬走出姿态 提交于 2019-12-04 18:45:49

问题


I'm new to Android development. As a class assignment another student and myself are making an android app that will utilize GPS coordinates.

Is there anywhere that would be a good place for me to start with GPS feature on Android, or that has a good example of how to use GPS? I don't want anything deep, literally just how to retrieve and use current GPS coordinates. I'd like to start simple and build up from there.


回答1:


Well mostly GPS coordinates are used along with Google Maps. So, as a starter what you can do is just get your own coordinates and put a marker on your location on the map.
This article and this one describes everything about using google maps with android.

Hope this helps.




回答2:


As mentioned in one of the other answers, Vogella's article here is very good for learning the basics of using GPS on Android.

The Android Dev guides are also particularly good for this area - obviously there are issues with battery drain associated with using location listeners. More in-depth information on what you can do to combat those issues are here, as when you get to grips with how to use GPS, you'll want to use it efficiently!

HTH




回答3:


http://webdesignergeeks.com/mobile/android/geting-current-location-in-android-application-using-gps/

this will be a good start. it explains how to get GPS coordinates as text format. Without dealing with google maps or anything complex.



来源:https://stackoverflow.com/questions/8159159/get-gps-coordinates-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!