gwtmobile-phonegap is a GWT wrapper of the PhoneGap Javascript library. PhoneGap is a cross-platform development framework that provides core mobile device features to web-based mobile apps. GWT by Google is a new way of developing web applications -- write apps in Java then compile into javascript. gwtmobile-phonegap enables a GWT mobile application to use PhoneGap functions.
gwtmobile-phonegap is a GWT wrapper of the PhoneGap Javascript library. PhoneGap is a cross-platform development framework that provides core mobile device features to web-based mobile apps. GwtMobile-PhoneGap enables GWT mobile applications to use PhoneGap functions.
gwtmobile-phonegap is part of GWT Mobile, a GWT mobile development platform.
gwtmobile-phonegap has wrapped the following PhoneGap functions:
Note: the storage function is not currently wrapped, as webkit browsers all support database now. This function may become useful when PhoneGap works on Windows Mobile 7 phone, which does not have in-browser database support.
The java code below showcases how to call PhoneGap functions in an GWT mobile application using gwtmobile-phonegap. For more code samples, check out the kitchensink
folder.
String watchId = Accelerometer.watchAcceleration(new Callback() {
@Override
public void onSuccess(Acceleration accel) {
text.setText("Watch Acceleration"
+ "\nX: " + accel.getX()
+ "\nY: " + accel.getY()
+ "\nZ: " + accel.getZ());
}
@Override
public void onError() {
text.setText("Error");
}
}, new Options().frequency(100));
GWT Mobile PhoneGap: A PhoneGap showcase app, demonstrate all PhoneGap functions!
Android Market, iTunes App Store
Fantasy Predictor: Manage all you Fantasy Football teams with the help of the Fantasy Predictor.
Android Market, iTunes App Store
Have a question? Post it on the GWT Mobile Google Group