By

PhoneGap.jar

Hey

Recently, we've been making changes similar to the iPhone code so that we can make it even easier for people to write Android Applications. We've encapsulated the PhoneGap source code into a JAR file, so that your Android Application can literally be as short as this:


import android.os.Bundle;
import com.phonegap.*;
public class TestApp extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file://android_asset/www/index.html");
}
}

Of course, you'd have to have the AndroidManifest setup correctly to accomodate the activities, but this is minor in comparison to how messy everything's been before this change. We'll have to do more restructuring of the repository to demonstrate how to use the new library in Android Applications, and this should allow for the Java code to be abstracted away and made even easier. Of course, we'd have to do more work to figure out how this will work on Android 2.0, but it's some exciting stuff.