I'm trying to use Gears' geolocation support on Android 1.5 but am running into some issues. The call I'm trying to use is documented here:
http://code.google.com/apis/gears/api_geolocation.html#watchPosition On my G1 dev phone I'm seeing two big problems: 1. The operation does not appear to accept any PositionOptions (http:// code.google.com/apis/gears/api_geolocation.html#positionoptions) such as "enableHighAccuracy". If I add any options to the call, it fires the error callback. For example: var geolocation = google.gears.factory.create('beta.geolocation'); geolocation.watchPosition(showMap, handleError, {enableHighAccuracy: true, maximumAge: 0}); This code will cause handleError() to be fired. If I remove the options from the end, it runs. Note that, strangely, this exact syntax works fine for geolocation.getCurrentPosition. 2. The operation does not appear to loop indefinitely as described. It is supposed to run until terminated, constantly updating the GPS coordinates. Using a counter I can see that it only fires once. For example: var geolocation = google.gears.factory.create('beta.geolocation'); watch = geolocation.watchPosition(showMap, handleError); function showMap(position) { alert("it ran"); // other code to eventually terminate via: geolocation.clearWatch (watch) } All of this works as expected on the iPhone (using the HTML5-standard equivalent operations, which are virtually identical). But Android does not appear to be behaving how the Gears docs suggest it should be. Anyone have any ideas here? Are these known bugs in cupcake? I'm stumped. Thanks! --Stephen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

