You do not need an intermediate step in writing data to application resources, especially since this is not possible. The resources are embedded in the application at the compilation stage and it is impossible to change them after the formation of the APK file (if you don’t use a completely true ultra-hardcore for a true ultra-hardcore).
If you want to fill out the database from the network then, having received the data from the network immediately and write them to the database without recording yet. So your application will always have fresh data and it’s not necessary to embed it in the application
If there is a possibility of problems with the site and / or you need to have an initial data set, then you can, without hesitation, build such a terrible crutch:
- Save the site code in the html file.
- Put this file in
assets - When you first run an application / missing data in the database / missing data from the network, set JSOUP to this file and write the result to the database.
strings.xml. There are no situations where this needs to be done. - Vladyslav Matviienko