Languages

Menu
Sites
Language
Cannot access database when updating the application

 

Not able to access database when updating the application. When installing the application the second time without uninstalling the existing one, the access to the databse is denyed. Is there any solution for this?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
Lakshmi Grandhi
Hi , Whenever you re-install the app all the application data will be erased and new data will be created . You can find the database by following the below steps in terminal: 1) sdb shell 2) su root 3) find / -type f -name Databases.db you'll get something like this " /opt/usr/apps/your app ID/data/.webkit/databases/Databases.db " . Databases.db is the db file
anfas ci
I don't want to erase existing db at the time of re-installation. Is there any way to restore the database at the time of re-installation?
hi anfas ci, please give more information about your app: - which kind of database do you use: IndexedDB, localStorage, etc - do you close connection after all operations?