title: How can I integrate Sencha Touch 2 into Cordova (Phonegap) project
body: <p>I'm trying to integrate a ST2 app into PhoneGap; but I'm having problems.</p>
  
  <p>I've added cordova.js into app.json:</p>
  
  <pre><code>{   
      "path": "resources/js/cordova-1.6.1.js",
      "update": "delta"
  },
  {   
      "path": "resources/js/test.js",
      "update": "delta"
  }
  </code></pre>
  
  <p>Test.js :</p>
  
  <pre><code>function alertDismissed() {}
  
  function showAlert() {
      navigator.notification.alert(
          'You are the winner!',  // message
          alertDismissed,         // callback
          'Game Over',            // title
          'Done'                  // buttonName
      );
  }
  </code></pre>
  
  <p>Inside a view, i've created a dummy button:</p>
  
  <pre><code>items: [{
      text: 'test',
      action: showAlert(),
  }],
  </code></pre>
  
  <p>When i tap the button; the function 'showAlert()' is fired up correctly; but not being executed correctly i have an error : </p>
  
  <pre><code>Uncaught TypeError: Cannot call method 'alert' of undefined
  </code></pre>
  
  <p>Obviously because the object 'navigator' is not being instenciated.</p>
  
  <p>Question: is it possible to have both cordova/senchatouch2 run ? 
  If so, what is the proper way to do it ?</p>
  
  <p>SOLVED: </p>
  
  <p>Add cordova.js prior to app.js</p>
  
  <pre><code>    {   
          "path": "resources/js/cordova-1.6.1.js",
          "update": "delta"
      },
      {
          "path": "sdk/sencha-touch.js"
      },
      {
          "path": "app.js",
          "update": "delta"
      },
  </code></pre>