Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Crosswalk error on android

Shohanur_R_
New Contributor I
1,400 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
1,400 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
1,400 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
1,400 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
1,400 Views
0 Kudos
Amrita_C_Intel
Employee
1,400 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
1,401 Views

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

0 Kudos
Reply