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
精彩评论