Software Archive
Read-only legacy content
17060 討論

Error/Android

Snake_S_
初學者
1,140 檢視

Hey everyone. I have created a own app with Intel XDK, but sometimes If I start my app, do I get a error message."the connection to the server was unsuccessful. (file ///android_asset/www/index.html)"

I found this as solution: "you need to add super.setIntegerProperty("loadUrlTimeoutValue", 70000); in your activity.java file
inside src/com/yourProj/--/youractivity.java
above this line: super.loadUrl("file:///android_asset/www/index.html");"

But my problem is, I dont have the data "youractivity.java". So what can I do?

0 積分
2 回應
Hamilton_Tenório_da_
傑出貢獻者 I
1,140 檢視

Snake> Are you using an old (and lazy) device? It happens to me when I test on Tablet 10 (first model). Then I open again and the app runs normally.

Hamilton

Snake_S_
初學者
1,140 檢視

I have tested on 2 Handys. Yes my first Handy (wiko sunset 2) is old. But my second Handy (doogee x6) isn't old. And If I my Handy (doogee x6) new start with app, then is the error message gone. It comes only If I install my app new. Strange.

回覆