0

I am building a mobile application with PhoneGap and Android, I have a loader at the start of the app and I am loading 2 images on startup, whenever the network speed is slow the following message pops-up and the app crashes:

The connection to the server was unsuccessful. file:///android_asset/www/index.html

Is there anyway to handle this error, that is, display for the user a message like "connection problem please try again" instead of the above message?

Your help is very much appreciated as I tried a lot and I went for super.setIntegerProperty("loadUrlTimeoutValue", 60000); but I need a better solution.

ramzy khalaf
  • 5
  • 1
  • 5
  • the answer here http://stackoverflow.com/questions/12319809/application-error-the-connection-to-the-server-was-unsuccessful-file-andr – Diaa Saada Mar 09 '13 at 09:19

1 Answers1

1

The path shoule be: "file:///android_asset/www/index.html"

seems you miss a slash

wayne_bai
  • 1,198
  • 4
  • 13
  • 23