title: PhoneGap on Android deviceready not working!
body: <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>