android - What does navigator.app.exitApp() do..? Does it clear the entire app session...? -


on backbutton event exiting app this..

document.addeventlistener("backbutton", function (e) {  if (app.history=="homepage"){     navigator.app.exitapp();  }  else{    winjs.navigation.back(1).done(function () { });  } } 

here came out home page , again clicked on app. starting login page instead of home page..

what behaviour of navigator.app.exitapp()...?

if by exiting mean come out of application, navigator.app.exitapp(); that.

however, doesn't clear application state or data. the application has moved background, , killing or pertaining in memory os.

terminating (exiting if prefer) application not under control of application developer. managed os (android in case). so, have normal behavior apps under mobile os.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -