Hi...
I believe the problem is the DDMS in eclipse.
Do you use windows XP? Than it is often written that your language
settings there must be english.

I got a result with telnet.

C:\>telnet localhost 5554
Android Console: type 'help' for a list of commands
OK
geo fix -82.411629 28.054553
OK


On 5 Jan., 13:54, Miroslav Slobodnik <[email protected]>
wrote:
> 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