Get Current Location GMaps

后端 未结 2 497
挽巷
挽巷 2021-01-27 19:46

i tried a lot of \"get current location\" for android. But i think most of them are outdated, or i simply dont get it.

I DONT want to set a marker.addmarker(params..) i

2条回答
  •  忘掉有多难
    2021-01-27 20:07

    Follow this http://www.androidhive.info/2012/07/android-gps-location-manager-tutorial/ . Then just place the latitude and longitude you get(using gps.getLatitude(), gps.getLongitude()) in your google map and it will show your current location.

提交回复
热议问题