I have build a very simple game with crosswalk but when I run the game on my android device its showing an error popup like 'The connection to the server was unseccessfu.(file:///android_asset/www/index.html) '.
please tell me how to resolve this.
I have solved my problem. I set a timeout in config.xml file and now its ok.
View solution in original post
The problem might be solved by adding a timeout to call your index.html
ie you need to add super.setIntegerProperty("loadUrlTimeoutValue", 70000)
This can be happened due to the following reasons
The core reason: the problem is likely due to the speed of the emulator so the network is too slow complete the communication in a timely fashion.
This can be due to:
I am using intel xdk to build I did not found any activity.java file inside my project folder.
Can you try doing this and see if error goes away
And can you post a screenshot of the error message? And can you send your.zip file of your project?
For more complete information about compiler optimizations, see our Optimization Notice.