undo the splash screen for now

This commit is contained in:
Dave Johnson 2010-08-17 11:26:39 -07:00
parent 8ca1804de9
commit 56f0e8e087
2 changed files with 6 additions and 3 deletions

View File

@ -227,7 +227,7 @@ PhoneGap.callbacks = {};
* @param {String[]} [args] Zero or more arguments to pass to the method
*/
PhoneGap.exec = function(clazz, action, args) {
CommandManager.exec(clazz, action, callbackId, JSON.stringify(args), false);
return CommandManager.exec(clazz, action, callbackId, JSON.stringify(args), false);
};
PhoneGap.execAsync = function(success, fail, clazz, action, args) {

View File

@ -106,9 +106,11 @@ public class DroidGap extends Activity {
1.0F));
splashScreen.setImageResource(R.drawable.splash);
root.addView(splashScreen);
// root.addView(splashScreen);
initWebView();
root.addView(appView);
setContentView(root);
}
@ -133,7 +135,8 @@ public class DroidGap extends Activity {
appView.setInitialScale(100);
appView.setVerticalScrollBarEnabled(false);
appView.requestFocusFromTouch();
WebSettings settings = appView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);