I am working on some application where I have to update some files present in assets / raw folder runtime from some http location.
Can anyone help me to by sharing how to write files in assets or raw folder?
The raw folder is created inside the res folder: main/res/raw.
Irrespective of the sync, the Assets folder is created and is visible in the module. Now, Right-click on the Assets folder and click on the File option by hovering over the New option. Enter the name of the file name and click Enter to create the file.
Assets provide a way to include arbitrary files like text, xml, fonts, music, and video in your application. If you try to include these files as "resources", Android will process them into its resource system and you will not be able to get the raw data.
It cannot be done. It is impossible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With