Skip to content

Instantly share code, notes, and snippets.

@dprotopopov
Created August 27, 2014 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dprotopopov/d9070dd69f6c3456f54b to your computer and use it in GitHub Desktop.
Save dprotopopov/d9070dd69f6c3456f54b to your computer and use it in GitHub Desktop.
(function (express) {
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
navigator.splashscreen.hide();
document.addEventListener("backbutton", exitApp, false);
}
function exitApp() {
switch (express.devices.real().platform) {
case "tizen":
tizen.application.getCurrentApplication().exit();
break;
case "android":
navigator.app.exitApp();
break;
case "win8":
window.external.Notify("DevExpress.ExitApp");
break;
}
}
})(DevExpress);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment