On 13/02/2014 14:48, Hugh Tay wrote:
Hello!


The code to do that, I meant. When you tap the Home button, the app
minimizes, and when you tap the app's icon again, it opens up with
its previous state preserved. But when you hold the Home button and X
the app, re-opening the app resets its state.

So my question is, how do we (A) close the app programmatically (with
code & not holding the Home button) and, (B) refresh the app (clear
it from memory and reload its start page as listed in the manifest)?


window.close();

Thanks!


Hugh _______________________________________________ dev-b2g mailing
list [email protected]
https://lists.mozilla.org/listinfo/dev-b2g

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to