Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to save image in assets folder from application

Tags:

android

I want to save image from a url in assets folder. I can save image in internal memory or sd card but I want to save in the assets folder.

I searched about it online but some results are saying that the assets folder is not writable. Is it possible to write image in that folder?

like image 325
Saifuddin Sarker Avatar asked Nov 06 '25 12:11

Saifuddin Sarker


1 Answers

No, you can't. But why do you need it to save it in there? if you want it to be store in the private area of your application (so your application is the only with access to it), you can do it, but if you want an image to be in your assets folder, you need to place it in there before you compile to create the apk.

Data Storage - Internal Memory

P.S. I don't recommend you to save large images on internal storage as this space is very limited in legacy devices.

like image 144
SERPRO Avatar answered Nov 08 '25 13:11

SERPRO