LocationListener loclis = new LocationListener() {
@Override
public void onLocationChanged(Location location) {
alt = location.getAltitude();
lat = location.getLatitude();
lon = location.getLongitude();
}
@Override
public void onProviderEnabled(String provider) {
System.out.println("provider enabled: " + provider);
}
@Override
public void onProviderDisabled(String provider) {
}
@Override
public void onStatusChanged(String providers, int status,
Bundle extras) {
System.out.println(status);
}
};
LocationManager lm = (LocationManager)
getSystemService(LOCATION_SERVICE);
lm.requestLocationUpdates(lm.getBestProvider(new Criteria(), true),
0,
0, loclis);
}
On Mon, Jun 15, 2009 at 11:37 AM, aby <[email protected]> wrote:
>
> Hi,
> Does anyone know how to get current locale in program?
>
> Thanks
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---