Hi Alireza, Thanks for trying crosswalk.
1. For your issue on Crosswalk Cordova: 1) Is your app doing too much work during your app start up? So it will take too long to display the first visible page, suggest have a loading page on your app if possible. ☺ 2) You can set the value of “SplashScreenDelay” longer in res/xml/config.xml to avoid automatically hide the splash screen, and call navigator.splashscreen.hide() when receive “deviceready” event or the place where you think the page is visible, it will avoid the black screen issue after the splashscreen.. 3) The black screen before the splashscreen is a known issue, and will be improved in the future. 2. Handle menu and back button without cordova As I know it’s not possible to handle these two events in JavaScript side by default. If you are familiar with Android application development, there is one option: The Embedding Crosswalk, please refer to https://crosswalk-project.org/#documentation/embedding_crosswalk And you need to override onKeyDown() on your activity to handle these two key events, and use xwalkView.evaluateJavascript() to pass the key events to JS side. Wish the answers above can help you. Br. Guangzhen From: Crosswalk-help [mailto:[email protected]] On Behalf Of Alireza Nourian Sent: Saturday, July 26, 2014 3:00 PM To: [email protected] Subject: [Crosswalk-help] Handling device events without Cordova Hi, I'm making an application that overrides menu button event. When I build my app with Crosswalk Cordova, it's launch time is longer and also there is a black screen before and after splash screen. Usage of Crosswalk without Cordova solves both of those issues, and I really doesn't need it except for handling device menu and back button. So, is it possible to handle device Menu Button without Cordova's menubutton?
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
