This is a migrated thread and some comments may be shown as answers.

Android default timeout when loading URLs

1 Answer 1280 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
HJ
Top achievements
Rank 1
HJ asked on 25 Nov 2013, 04:31 AM
I have just run into a small "difficulty" REF. "too short" a timeout under "Android vs 2.3"
I have code that works on both "Android vs 4.x" and iOS... but FAILS under Android vs 2.3

When accessing "slow/standard" IPCAMs (serving JPEG/MPEG streams),
the same exact code works OK on a GALAXY S3, iPhone (several models), and iPad ... 
but FAILS under Android vs 2.3 (T-mobile phone), with the error... 
  "Web page not available"

As per info on this link... 
  http://jquerymobile.com/demos/1.2.0/docs/pages/phonegap.html
I have just learned that...
Android enforces a timeout when loading URLs in a webview which may be too short for your needs. 
You can change this timeout by editing a Java class generated by the Eclipse plugin for Android:
   super.setIntegerProperty("loadUrlTimeoutValue", 60000);

After reading info referred in Icenium web pages (below), it does not seem possible to change this timeout value "programatically".
ANY SUGGESTIONS ?... 
    
       http://docs.icenium.com/configuring-your-project/edit-configuration
       http://developer.android.com/guide/topics/manifest/manifest-intro.html

Thanks

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Nov 2013, 04:43 PM
Hi HJ,

Cordova has a corresponding property (loadUrlTimeoutValue) that should be changed if needed by editing the Android config.xml file as per the links you've shared at the end. You can see the available Android Cordova properties in their documentation here.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
HJ
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or