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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -