Update database file by downloading file from server(url)-android -
how save database file download server in /data/data/com.package.name/databases/file.db
path(update current database deleting , replacing new database--not update app).
i had downloaded file , saved in /data/data/com.package.name/files
.but not save given path (permission problem) firstly shows correct size try pull file out see database empty , try run app further closes giving error table can not found , file size decreases containing android_metadata table only.
i had downloaded file , saved in sdcard show error while reading file ---contains path separator
since don't want access database sdcard. have split database file 1mb each (3mb 1 file 3 files).
android not allow access root path . wont allow save databse there. can save database sd card , access . or if dont want save sd card create database , populate records server.
Comments
Post a Comment