Hey everyone. I have experimented with creating an application using the Geolocation API. The application gets your location through your GPS and continously updates how far you have moved.
It works great on my Android (2.2, WebKit 3.1), but I have one problem which limits the usability of the application. My problem is that after 1 minute, the screen turns off automatically to lock the phone and save battery. When this happens, I no longer receive updates from the geolocation.watchPosition method. Also, the geolocation.getCurrentPosition doesn't work. The same happens if the user locks the phone manually.
The Javascript Timeout is still running - but it cannot access the hardware. Is there any way to prevent the shutdown of the GPS in standby mode?
Anyway, you can take a look at my test application to see an example of how to use the Geolocation API:
http://simon.sandvei.com/stuff/html5-location/
About the application:
http://simon.sandvei.com/2010/12/04/geo ... -tracking/