title: Why is cordova.exec() running in my Android PhoneGap (1.7) app before "deviceready"?
body: <p>I'm trying to "PhoneGap" (1.7.0) a jQuery Mobile app (1.1.0) I have to create an Android app. However, I keep getting the following alert message.</p>
  
  <pre><code>ERROR: Attempting to call cordova.exec() before 'deviceready'. Ignoring.
  </code></pre>
  
  <p>It <em>appears</em> as if this may happen during $.ajax calls, but it difficult to be sure.</p>
  
  <p>I'm not making any calls to Cordova functions in my app - it's pure JQM.</p>
  
  <p>Any ideas what the problem is. Or, failing that, does anyone know why cordova.exec() might be called during an $.ajax request?</p>
  
  <p>I'm running the app under Android 4.0.3, in a virtual device/simulator.</p>