I have the problem with javascript database.
I am opening Html page form resource via WebView.
When window.opendatabse function calls it returns null value.
It is working fine in iphone wrapper app as well as chrome database. But not on android.
but still not working..
I am using os version 2.3.3.
Please Help...
I am opening Html page form resource via WebView.
When window.opendatabse function calls it returns null value.
It is working fine in iphone wrapper app as well as chrome database. But not on android.
I have already added following code in my activity class:var db= null;
var dbSize = 5 * 1024;
alert("db opening");
db = window.openDatabase("app", "1.0", "app manager", dbSize);
alert(db);// shows null
WebView wv = (WebView) findViewById(R.id.webView1);
WebSettings settings = wv.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDatabaseEnabled(true);
settings.setAppCacheEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
String databasePath = this.getApplicationContext().getDir("app",
Context.MODE_PRIVATE).getPath();
settings.setDatabasePath(databasePath);
but still not working..
I am using os version 2.3.3.
Please Help...

