timeout setting | phonegap

http://jquerymobile.com/test/docs/pages/phonegap.html

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);

ということで

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl(“file:///android_asset/www/index.html”);
super.setIntegerProperty(“loadUrlTimeoutValue”, 1000);
}

と入れてみた。
最初に置くとindex.htmlのloadUrlでエラーが出た^^;このロードに一秒かかるとは
数字を大きくするとOK.
最初のloadUrlの後ろに置きました。

android以外はわかりません。

This entry was posted on 日曜日, 2月 5th, 2012 at 1:37 AM and is filed under jquery mobile, PhoneGap. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。