Software Archive
Read-only legacy content
17061 Discussions

Crosswalk error on android

Shohanur_R_
New Contributor I
613 Views

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.

0 Kudos
1 Solution
Shohanur_R_
New Contributor I
613 Views

I have solved my problem. I set a timeout in config.xml file and now its ok.

View solution in original post

0 Kudos
5 Replies
Amrita_C_Intel
Employee
613 Views

The problem might be solved by adding a timeout to call your index.html

ie you need to add super.setIntegerProperty("loadUrlTimeoutValue", 70000)

Explanation:

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:

  1. Your code/data/image is of too much of size
  2. Your script may have a infinite or long loop, so that it takes too much of time to load.
  3. You will be using too much of scripts (jQuery, iscroll, etc etc.. more number of plugins or scripts )
0 Kudos
Shohanur_R_
New Contributor I
613 Views

I am using intel xdk to build I did not found any activity.java file inside my project folder.

0 Kudos
Amrita_C_Intel
Employee
613 Views
0 Kudos
Amrita_C_Intel
Employee
613 Views

And can you post a screenshot of the error message? And can you send your.zip file of your project?

 

0 Kudos
Shohanur_R_
New Contributor I
614 Views

I have solved my problem. I set a timeout in config.xml file and now its ok.

0 Kudos
Reply