title: navigator.app.exitapp() not working in android device
body: <pre><code>  document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady() {
    document.addEventListener("backbutton", backButtonEvent, false);
  }
     function backButtonEvent() {
      var currentUrl=window.location.hash;
       if(currentUrl=='#/homePage' || currentUrl=='#/'){
  navigator.app.exitApp();
   }
  else{
    history.go(-1);
    navigator.app.backhistory();
    }
  }
  </code></pre>
  
  <p>Iam using ionic framework and phone gap.. here when i click device backbutton from home page its just minimizing that app not exiting. How can i exit my app?? </p>