Thursday, September 1, 2011

PhoneGap - AppView Setting

PhoneGap appView is the Android WebView container. By default, many setting are off. The following are some helpful setting

//Enable Zoom
this.appView.getSettings().setSupportZoom(true);
//Display with Zoom control. Please note that Android 2.3 and below
//required this in order for zoom support to be enabled
this.appView.getSettings().setBuiltInZoomControls(true);
//Enable normal web view port (like desktop browser). If this is false, it will
//auto fit your content to mobile viewport
this.appView.getSettings().setUseWideViewPort(true);
//enable plugin. This is needed to enable flash plugin
this.appView.getSettings().setPluginState(PluginState.ON);

No comments:

Post a Comment

Oracle - Reclaim disk space

Oracle does not release disk space even if you had delete the data or tablespace. If you have enterprise manager, you should use it to  rec...