Hi,
I can get the location in the emulator when I send it through the DDMS however I never get a location update on the actual device (I have it enabled and google maps can find the current location).
Here is my code:
lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new MyLocationListener());
private class MyLocationListener implements LocationListener {
public void onLocationChanged(Location arg) {
loc = arg;
}
public void onProviderDisabled(String provider) {
}
public void onProviderEnabled(String provider) {
}
public void onStatusChanged(String provider, int status, Bundle extras) {
}
}
Here are the permissions I have:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
Any help would be great!
Thanks,
Mike


