Note that there are some explanatory texts on larger screens.

plurals
  1. POPhoneGap on Android deviceready not working!
    primarykey
    data
    text
    <p>I'm working on a mobile application using phoneGap. I'm showing <strong>deviceInfo</strong> and and it's not working on Android emulator! but works on BlackBerry emulator. I`m using Dreamweaver cs 5.5. Any solution to this issue?</p> <p>Here is my code:</p> <pre><code> // invoked when device is ready function deviceInfo() { document.getElementById('window.device.platform').innerHTML = 'window.device.platform = ' + window.device.platform; document.getElementById('window.device.version').innerHTML = 'window.device.version = ' + window.device.version; document.getElementById('window.device.uuid').innerHTML = 'window.device.uuid = ' + window.device.uuid; document.getElementById('window.device.phonegap').innerHTML = 'window.device.phonegap = ' + window.device.phonegap; navigator.network.isReachable("phonegap.com", function(reachability) { var states = {}; states[NetworkStatus.NOT_REACHABLE] = 'No network connection'; states[NetworkStatus.REACHABLE_VIA_CARRIER_DATA_NETWORK] = 'Carrier data connection'; states[NetworkStatus.REACHABLE_VIA_WIFI_NETWORK] = 'WiFi connection'; document.getElementById('networkStatus').innerHTML = 'isReachable = ' + states[reachability]; }, { isIpAddress: false }); } // invoked when application is resumed (brought to foregroud) function doResume() { console.log('doResume()'); } // invoked when application is paused (sent to background) function doPause() { console.log('doPause()'); } // register PhoneGap event listeners when DOM content loaded function init() { console.log('init()'); document.addEventListener("deviceready", deviceInfo, true); document.addEventListener("resume", doResume, false); document.addEventListener("pause", doPause, false); } function unload() { console.log('unload()'); } function fail(error) { navigator.notification.alert(error, null, "Error"); } </code></pre> <p>On my HTML:<code>&lt;body onload="init()" onunload="unload()"&gt;</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload