title: Phonegap Cordova 1.7.0 full exit app android
body: <p>I use Cordova 1.7.0, though tried with 1.6.1 and invoked all methods of full exiting app I found on the internet. But my android app always remains running in background.
  I use:</p>
  
  <pre><code>document.addEventListener("backbutton", function(e) {
            if ($.mobile.activePage.attr('id') === 'homePage') {
              navigator.app.exitApp();
              } else {
                window.history.back();
              }
          }, false);
  </code></pre>
  
  <p>Now, it exits fully on simulator, but never on the device. Is there a sure way to kill Phonegap app on exit in android?</p>