Seeing how to use the new Phonegap. I first create a directory for android with the

Seeing how to use the new Phonegap. I first create a directory for android with the
following:
Say that I'm trying to package where-am-i.rkt.
$ android create project --target "android-8" --name WhereAmI --path where-am-i --activity WhereAmI --package org.plt
I go into the created directory and make an assets subdirectory:
$ cd where-am-i
~/where-am-i $ mkdir -p assets
I then build my where-am-i stuff into assets:
$ cd assets
$ cp ~/work/whalesong/web-world/examples/where-am-i/* .
$ whalesong build --compress-javascript where-am-i.rkt
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");
}
}
//////////////////////////////////////////////////////////////////////