Skip to content

Commit

Permalink
more notes about making things work with phonegap
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Sep 15, 2011
1 parent 1bdabbe commit b60c244
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions notes/phonegap-stuff.txt
Expand Up @@ -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");
}
}
//////////////////////////////////////////////////////////////////////

0 comments on commit b60c244

Please sign in to comment.