Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more notes about making things work with phonegap

  • Loading branch information...
commit b60c244a9be062edd48208c9a25ff5340a457668 1 parent 1bdabbe
Danny Yoo authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 notes/phonegap-stuff.txt
View
24 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");
+ }
+}
+//////////////////////////////////////////////////////////////////////
Please sign in to comment.
Something went wrong with that request. Please try again.