Hi,
I have problem with gps related task. I registered location updates,
and then use Eclipse view "Emulator Control" to send GPS location, but
method onLocationChanged is never called. Method onStatusChanged is
called when I first click button "Send" in Eclipse "Emulator Control".
I do not know why? Is there problem with some permission or something
like that?

My permissions:

       <uses-permission
android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-
permission>
       <uses-permission
android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></
uses-permission>
       <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"></uses-
permission>
       <uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-
permission>

Code:

LocationManager locationManager = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
 
locationManager.requestLocationUpdates("gps", 0, 0, new
StartJourneyListener(journeyId));

inner class:

private class StartJourneyListener implements LocationListener{
...
  public void onLocationChanged(Location location){
  }
...
}

Thank you in advance for replies.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to