Android default timeout when loading URLs

2 posts, 0 answers
  1. HJ
    HJ avatar
    14 posts
    Member since:
    Jan 2013

    Posted 24 Nov 2013 Link to this post

    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...
    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".

  2. Steve
    Steve avatar
    10941 posts

    Posted 26 Nov 2013 Link to this post

    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.

    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.
Back to Top