Results 1 to 3 of 3

Thread: Issue with Android geolocation...

  1. #1

    Default Issue with Android geolocation...

    Hello everyone - loving Sencha...absolutely incredible! I am...of course having an issue or wouldn't be posting

    Any help on the following would be much appreciated - I'm sure it is something stupid but I cannot find the issue anywhere.

    I am doing a geolocation on a map object. Everything works wonderfully in the iPhone (3, 3g, 4), iPad, etc. Android for some reason will not locate at all. This only seems to have become an issue in some of the later Sencha releases, however, I'm not exactly sure when it stopped working!

    I have used the android emulator and ADB - and have looked in the console and am getting the following error when trying to invoke the geolocation from android...

    E/LocationManagerService( 51): requestUpdates got exception: E/LocationManagerService( 51): java.lang.IllegalArgumentException: provider=network E/LocationManagerService( 51): at E/LocationManagerService( 51): at E/LocationManagerService( 51): at android.location.ILocationManager$Stub.onTransact( E/LocationManagerService( 51): at android.os.Binder.execTransact( E/LocationManagerService( 51): at Method)

    Has anyone experienced this or have any thoughts?


  2. #2
    Sencha User
    Join Date
    Dec 2010


    I'd like to get an answer to this too... I am having the same problem, geolocation works on iPhone but not Android.

  3. #3
    Sencha User
    Join Date
    Mar 2011


    I think there is a bad evaluation for GeoLocation provider in original code.

    To fix that in your code when you initiate Ext.util.GeoLocation object specify manually the provider: navigator.geolocation

    this.geo = new Ext.util.GeoLocation({
                provider: navigator.geolocation ? navigator.geolocation : google.gears.factory.create('beta.geolocation'),
                listeners: {
                    locationupdate: function (geo) {
                    locationerror: function (   geo,
                                                message) {
                            console.error('Timeout occurred.');
                            console.error('Error occurred. '+message);

Similar Threads

  1. Geolocation issue when app saved to homescreen on iPhone
    By MrNibbles in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 8 Jan 2012, 11:56 PM
  2. Android 2.2 - Jumping Forms Issue
    By meQ in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 6 Oct 2010, 1:56 AM
  3. Geolocation working on Android? Timeline on release for camera access
    By olin in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 10 Aug 2010, 12:32 AM
  4. Android issue - Standard links broken inside TabPanel
    By mrjameshall in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 31 Jul 2010, 9:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts