- 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.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.