Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Shohanur_R_
New Contributor I
93 Views

Crosswalk error on android

Jump to solution

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.

Tags (2)
0 Kudos

Accepted Solutions
Shohanur_R_
New Contributor I
93 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
93 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
93 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
93 Views
0 Kudos
Amrita_C_Intel
Employee
93 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
94 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