开发者

Android : Using GPS

开发者 https://www.devze.com 2023-01-19 08:54 出处:网络
Is there any way by which i can get the last GPS location my application itself ???? Is there any API available which can show me the L开发者_StackOverflow社区at and Long. of the place from where i

Is there any way by which i can get the last GPS location my application itself ????

Is there any API available which can show me the L开发者_StackOverflow社区at and Long. of the place from where i have connected GPS last time.

Any help, much appriciated

Thank you


LocationManager manager = (LocationManager)Context.getSystemService(Context.LOCATION_SERVICE);
manager.getLastKnownLocation(LocationManager.GPS_PROVIDER);


You can use the LocationManager.

http://developer.android.com/reference/android/location/LocationManager.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号