Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write files to assets folder or raw folder in android?

Tags:

android

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?

like image 473
dwarkesh Avatar asked Sep 21 '10 13:09

dwarkesh


People also ask

Where is the raw folder on Android?

The raw folder is created inside the res folder: main/res/raw.

How do I add files to assets?

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.

What is the use of assets folder in Android?

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.


1 Answers

It cannot be done. It is impossible.

like image 66
Aaron Saunders Avatar answered Sep 21 '22 19:09

Aaron Saunders