Hi Steve,

Thanks a lot for the quick response.
I haven't told this in my previous post. Let me clarify things
now.....

The Emulators I use are Windows Mobile 6.0 Classic and professional.

I installed a Fake GPS program which acts, as if there were a GPS
receiver and a GPS intermediate driver.

I am able to run a Windows Mobile Forms based application in C# which
can retrieve the location from the fake GPS driver (of course that's
not the real location), but I could fetch what ever the fake GPS
provides as a position (Latitude and longitude).

Let me give you the code I used.... I just tried to open the sample
web page which uses GeoLocation in this link :
http://code.google.com/apis/gears/samples/hello_world_geolocation.html

This page in my desktop browser apparently takes my network Service
Provider's data as a position fix. The first time the page is opened,
gears asks if I want to grant permission for the web page to access it
(gears on my computer). I granted permission and it worked perfectly
fine and I got my latitude and longitude after 3 seconds.

The same page when opened in my emulator's browser (it's run on my
computer) also pops up the permission box from gears.... and I grant
the permission, but it never gets the location..... even after an
hour.

It doenNot consider the fake GPS program as a position fix apparently.
Atleast, why can't the position fix be my Network Service provider as
my emulator uses my computer's IP to connect to the internet? Do I
need to change some settings on my emulator?.....


Can you please tell me how I can proceed further now?

Thanks in advance,
Renuka

On Sep 8, 10:37 pm, Steve Block <[EMAIL PROTECTED]> wrote:
> Hi Renuka,
>
> The sample application attempts to get a position fix using all
> available sources of position information. In the case of WinCE, this
> means a network server (using IP and cell ID information where
> available) and a GPS if present.
>
> The WinCE emulator does not have a radio stack, so no cell ID is
> available to Gears and the only data sent to the network server is IP
> address. This should be the host machine's IP address, so if the
> sample application works on your desktop machine, it should also work
> on a WinCE emulator on that machine. Are you running the emulator on
> the desktop machine on which you've reported success with the sample
> app?
>
> Regarding GPS, obviously the emulator does not have a GPS, but the
> WinCE API presented to Gears is such that Gears can't detect this, and
> will try to use the GPS. Obviously no position will be found and Gears
> will eventually give up and report an error message after
> approximately 5 minutes. The sample app should not hang indefinitely.
>
> Hope this helps.
>
> Steve

Reply via email to