2010-10-06 12 views
0

Y at-il un moyen par lequel je peux obtenir le dernier emplacement GPS mon application elle-même ????Android: Utilisation du GPS

Y at-il une API disponible qui peut me montrer le Lat et Long. de l'endroit d'où j'ai connecté le GPS la dernière fois.

Toute aide, beaucoup appriciated

Merci

Répondre

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

@ Nikola Smiljanic: Merci pour ur réponse ..... –

+0

android.content.Context à l'importation; import android.location.LocationManager; LocationManager manager = (LocationManager) getSystemService (Contexte.LOCATION_SERVICE); manager.getLastKnownLocation (LocationManager.GPS_PROVIDER); –