I don't have a solution, but I can say that I had this same problem,
and changing the provider from NETWORK to GPS fixed my problem. I'm
not on Windows, but MacOSX.

You'll want to make sure you set the provider to be GPS_PROVIDER. An
example like:

mgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
locationListener);

works!

But:
mgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,
locationListener);

does not. It looks like from th eoriginal post that you have set
"gps", so I'm not sure specifically why you are having the problem,
but just wanted to make others aware that the provider does seem to be
important.


On Jan 10, 9:03 am, Immy <[email protected]> wrote:
> All i do is to send the location to the emulator as a gps tracked
> location in one of the following ways:
>
> Open DDMS from the Android SDK > Tools directory.
> Go to emulator control
>
> 1)  Manually set your location
>
> 2) Save the location you want in google earth (Save point/location as)
> as a kml file.
>     Upload to the prompted browse dialog and send.
>
> Hope this helps some1.
>
> -Immanuel
>
> On Jan 9, 8:06 pm, Miroslav Slobodnik <[email protected]>
> wrote:
>
> > Somebody know how to get it working?
>
> > On Jan 7, 3:15 pm, Miroslav Slobodnik <[email protected]>
> > wrote:
>
> > > Hi,
> > > yes I use Win XP SP3. Telnet way to seng goe command through geo fix
> > > is working. So the problem is in language to get it work inEclipse?
>
> > > On Jan 7, 11:19 am, Spinjev Giginsky <[email protected]>
> > > wrote:
>
> > > > Hi...
> > > > I believe the problem is the DDMS ineclipse.
> > > > 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 withgpsrelated task. I registered location updates,
> > > > > and then useEclipseview "Emulator Control" to sendGPSlocation, but
> > > > > method onLocationChanged is never called. Method onStatusChanged is
> > > > > called when I first click button "Send" inEclipse"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