- Forum posts: 1
Apr 14, 2015, 1:21:12 PM via Website
Apr 14, 2015 1:21:12 PM via Website
I'm currently working on a Webkit based app. I have a form data which has to be stored in the in-app sqllite database. I'm not able to create the Database and tables in the apps sqlite database.
I have used the following code:
WebSettings settings = wb.getSettings();
settings.setDatabasePath("/data/data/"+this.getPackageName()+"/databases/");
settings.setDomStorageEnabled(true);
wb.getSettings().setAppCacheEnabled(true);
wb.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
wb.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
But the method setDatabasePath() is deprecated in Android 4.4. Are there any alternative methods or libraries to store it in a sqlite databse.