1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    82
    Vote Rating
    0
    Answers
    2
    ronaldoneal is on a distinguished road

      0  

    Default Unanswered: Android Build Map Directions Not Showing Post Native Build

    Unanswered: Android Build Map Directions Not Showing Post Native Build


    My application mapping works find during development and production build. The map directions do not show up on the native build to emulator and test phone. There is a line in the ADB log file (below) that says the geolocation Service registration error. Is this why the directions do not display, how can I resolve it?

    Code:
    04-18 14:57:15.709   332   341 I AndroidRuntime: NOTE: attach of thread 'Binder Thread #3' failed
    04-18 14:57:17.078    64    92 I ActivityManager: Displayed com.houcforchrist.houcfc/.STActivity: +1s454ms
    04-18 14:57:18.238   340   351 D szipinf : Initializing inflate state
    04-18 14:57:18.258   340   351 D szipinf : Initializing inflate state
    04-18 14:57:18.258   340   351 D szipinf : Initializing zlib to inflate
    04-18 14:57:18.288   340   351 D szipinf : Initializing zlib to inflate
    04-18 14:57:18.418   340   351 D szipinf : Initializing inflate state
    04-18 14:57:18.418   340   351 D szipinf : Initializing inflate state
    04-18 14:57:18.448   340   351 D szipinf : Initializing zlib to inflate
    04-18 14:57:18.468   340   351 D szipinf : Initializing zlib to inflate
    04-18 14:57:18.830   340   343 D dalvikvm: GC_CONCURRENT freed 148K, 41% free 3983K/6727K, external 2002K/2137K, paused 6ms+5ms
    04-18 14:57:22.208   158   158 D dalvikvm: GC_EXPLICIT freed 87K, 48% free 3143K/6023K, external 2941K/3414K, paused 82ms
    04-18 14:57:28.999   296   296 D dalvikvm: GC_EXPLICIT freed 11K, 54% free 2543K/5511K, external 1625K/2137K, paused 1842ms
    04-18 14:57:44.168   340   340 I Web Console: onLocationsActivate exit at file:///android_asset/app.js:1
    04-18 14:57:44.178   340   340 I Web Console: onLocationsActivate exit at file:///android_asset/app.js:1
    04-18 14:57:48.870   340   343 D dalvikvm: GC_CONCURRENT freed 1638K, 55% free 3551K/7751K, external 2002K/2137K, paused 7ms+8ms
    04-18 14:58:21.958    64   122 D SntpClient: request time failed: java.net.SocketException: Address family not supported by protocol
    04-18 15:01:00.149    64    69 I dalvikvm: Total arena pages for JIT: 11
    04-18 15:03:21.979    64   122 D SntpClient: request time failed: java.net.SocketException: Address family not supported by protocol
    04-18 15:04:08.188   340   349 I Database: sqlite returned: error code = 14, msg = cannot open file at source line 25467
    04-18 15:04:08.208   340   349 E geolocationService: Caught security exception registering for location updates from system. This sho
    uld only happen in DumpRenderTree.
    04-18 15:04:08.368   340   340 I Web Console: location does not exists at file:///android_asset/app.js:1
    04-18 15:05:02.839   340   343 D dalvikvm: GC_CONCURRENT freed 1197K, 58% free 3316K/7751K, external 2002K/2137K, paused 5ms+7ms
    04-18 15:08:22.030    64   122 D SntpClient: request time failed: java.net.SocketException: Address family not supported by protocol

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,547
    Vote Rating
    872
    Answers
    3566
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are you using Ext.util.Geolocation or Ext.device.Geolocation?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

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

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

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

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    82
    Vote Rating
    0
    Answers
    2
    ronaldoneal is on a distinguished road

      0  

    Default


    I believe neither. Requiring Ext.Map.

    Code:
    Ext.define('HCofC.view.location.Map', {
    
    
        extend: 'Ext.Container',
        xtype: 'locationMap',
        requires: 'Ext.Map',
    ...
    To get the current location, I am using the following:

    Code:
    		function getLatLng(callback) {
    		// test for presence of geolocation
    			if (navigator && navigator.geolocation) {
    				// make the request for the user's position
    				navigator.geolocation.getCurrentPosition(function (position) {
    					// success handler
    					callback(position.coords.latitude, position.coords.longitude);
    				},
    				function (err) {
    					// handle the error by passing the callback the location from MaxMind
    					callback(geoip_latitude(), geoip_longitude(), true);
    				});
    			} else {
    				// geolocation not available, so pass the callback the location from
    				// MaxMind
    				callback(geoip_latitude(), geoip_longitude(), true);
    			}
    		}

Thread Participants: 1

Tags for this Thread