Hi Steve,

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

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 one of the
sample APIs using 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 5 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,
but it never gets the location..... even after an hour.

not even from the IP through which my computer connects to the
internet (as my emulator obvioulsy uses my computer's IP)....
not even from the fake GPS program I mentioned.

Can you now 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