Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
    evan19880415 is on a distinguished road

      0  

    Default Ext.util.Geolocation is not working on my android device(4.1.2)

    Ext.util.Geolocation is not working on my android device(4.1.2)


    This is my code as below.
    Code:
     
    var geo = Ext.create('Ext.util.Geolocation', {	autoUpdate: false,
    	listeners: {
    		locationupdate: function(geo) {
    			//currentLatlng =  = new google.maps.LatLng(geo.getLatitude(),geo.getLongitude());
    			alert(geo.getLatitude()+":"+geo.getLongitude());
    		},
    		locationerror: function(geo, bTimeout, bPermissionDenied, bLocationUnavailable, message) {
    			if(bTimeout){
    				alert('Timeout occurred.');
    			} else if(bPermissionDenied){
    				alert('Error Permission occurred.');
    			} else if(bLocationUnavailable){
    				alert('Error Location occurred.');
    			} else {
    				alert('Error occurred.'+message);
    			}
    		}
    	}
    });
    It is working when i use chrome but when i install it to my phone, it cannot show any alert.

    I used Sencha Cmd v4.0.1.45 and Android SDK 18 to build it, and i didn't see any error when i build it.

    Is there anything i miss to do?

    Thanks for your time.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,911
    Vote Rating
    129
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    What version of Touch are you experiencing this issue 2.3.0 or 2.3.1? Did you require 'Ext.util.Geolocation' in your app?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
    evan19880415 is on a distinguished road

      0  

    Default


    Thanks Fmoseley's reply, i found the problem.The problem is that my phone wifi and gps cache got a null value in the beginning.After i restart my phone, it got the right lat and lng.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi