android obtenir l'emplacement actuel de nom

Hé les gars, je veux obtenir la position actuelle avec le nom. Je n'ai codant pour obtenir de l'emplacement actuel (lat,lang) comment puis-je montrer relative de nom de lieu

(ie) 13.006389 - 80.2575 : Adyar,Madras,Inde

LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new LocationListener() {
    public void onStatusChanged(String provider, int status, Bundle extras) {
        //called when the location provider status changes. Possible status: OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE or AVAILABLE.
    }
    public void onProviderEnabled(String provider) {
        //called when the location provider is enabled by the user
    }
    public void onProviderDisabled(String provider) {
        //called when the location provider is disabled by the user. If it is already disabled, it's called immediately after requestLocationUpdates
    }

    public void onLocationChanged(Location location) {
        double latitute = location.getLatitude();
        double longitude = location.getLongitude();
        //do whatever you want with the coordinates
    }
});

OriginalL'auteur Rajamohan Sugumaran | 2012-02-14