Android Question Update files included in App

carloz

Member
Licensed User
Longtime User
Hello All,

Another query !!

I have a app which includes a sqlite database & some file(xls,mp4,txt,pdf) etc in file.dirassets.
The app needs to sync data from the server once a month... which would have newer files added by admin.
How can i now add the new files in the app? since the file.dirassets is read-only..

any other way of approaching this?

regards
carloz
 

HotShoe

Well-Known Member
Licensed User
Longtime User
You can copy the files to DirInternal. It is protected and is read write. Be sure to change all of your read routines to the new path instead of DirAssets. You can also use DirDefaultExternal, but it is not protected from people snooping around.

--- Jem
 
Upvote 0

carloz

Member
Licensed User
Longtime User
You can copy the files to DirInternal. It is protected and is read write. Be sure to change all of your read routines to the new path instead of DirAssets. You can also use DirDefaultExternal, but it is not protected from people snooping around.

--- Jem
Thnx jem..
Was just trying out default external...I'll change to dirinternal..

Regards
Carloz
 
Upvote 0
Top