From b60c244a9be062edd48208c9a25ff5340a457668 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Thu, 15 Sep 2011 15:18:21 -0400 Subject: [PATCH] more notes about making things work with phonegap --- notes/phonegap-stuff.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/notes/phonegap-stuff.txt b/notes/phonegap-stuff.txt index a8417d9f..66cad3ad 100644 --- a/notes/phonegap-stuff.txt +++ b/notes/phonegap-stuff.txt @@ -25,3 +25,27 @@ One problem that's coming up is that the assets file isn't allowed to have files larger than a megabyte. So I'm forced to split up the files, after all... (http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/) + + + + +Also, we need to bump utp the loadUrlTimeoutValue parameter to prevent +the browser from timing out from reading the files. + +////////////////////////////////////////////////////////////////////// +package org.plt; +import android.os.Bundle; +import com.phonegap.*; +public class WhereAmI extends DroidGap +{ + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + // setContentView(R.layout.main); + super.setIntegerProperty("loadUrlTimeoutValue", 60000); + super.loadUrl("file:///android_asset/where-am-i.html"); + } +} +//////////////////////////////////////////////////////////////////////