android - Getting Longitude and Latitude using Google maps v2 -


how longitude longitude of current phone location using google maps v2?

i use method zoom on device place:

googlemap.getuisettings().setmylocationbuttonenabled(true); 

now how coordinates?

i know method area:

        double left = vr.latlngbounds.southwest.longitude;         double top = vr.latlngbounds.northeast.latitude; ... 

you can center lat , lng values google maps via code

latlng latlng = map.getcameraposition().target; double lat = latlng.latitude; double lng = latlng.longitude; 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -