Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: download image from URL to Assets folder

I have a method that downloads an image from a given URL. Is it posible to store the downloaded image in the Assets folder and then reference it at runtime?

Thanks in advance!

like image 587
mxch Avatar asked Oct 22 '25 16:10

mxch


2 Answers

No. The asset folder is not listed as a storage option. You need to use the internal storage or external storage API's to store your image.

like image 158
znat Avatar answered Oct 25 '25 05:10

znat


There's no assets folder on your device,you can save your image to your own folder on sd card,with the proper android permission.

like image 23
topxebec Avatar answered Oct 25 '25 04:10

topxebec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!