4

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?

3
  • "some saying its assets folder is not writable" some ? not all ? ... it's not possible period Commented Jan 9, 2012 at 12:38
  • No its not possible to write anything or save anything in the resources. Commented Jan 9, 2012 at 12:38
  • i found here stackoverflow.com/questions/8381261/… about it. that saying that.. but i saw in some places that assets folder is readable. i mean we can show image from assets. so just need to know more about assets folder is it writable or not? Commented Jan 9, 2012 at 12:42

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you please explain how to do="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"
@ridvanzoro FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);developer.android.com/guide/topics/data/…
1

it is not possible , Here same topic discussed check it

StackOverflow

1 Comment

Thanks. now i need to change my plan :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.