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

java - Incorrect order of records in M-M relationship in hibernate -

ruby - Net::HTTP extremely slow responses for HTTPS requests -

c# - Json write can not be serialized -