This is an Android function, nothing to do with Crosswalk. Override onBackPressed() in your activity. See http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29.
Rob N. On Mon, 18 May 2015, at 08:13 PM, Dinde Games wrote: > Hello, > > I'm a beginner with crosswalk, and I'm using it to make a game (with > Phaser for those who know). So, I use crosswalk (with the CLI, not > with intel XDK) as my wrapper, and I'd like to know how can I handle > the back button on the android device ? At the moment it quits the > game withtout any warning, I'd like to prevent that because the user > could hit that accidentally, so I would like to write my custom > function in javascript but I don't know if there is a javascript event > available? > > After some researches, I saw several answers about crosswalk with > cordova, but I'm not using cordova, and I hope I won't have to, > because I don't really need it and I try to have light apk in the end, > and I don't know if it will affects the performances of my game. > > Thanks in advance ! > _________________________________________________ > Crosswalk-help mailing list [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
