Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write to /res/drawable/ on the fly?

Tags:

android

My widget reads an image from /res/drawable/.

I would like to be able to change the image and write it back out to the /res/drawable/ structure.

Is this possible?

like image 913
Cameron McBride Avatar asked Jul 30 '10 17:07

Cameron McBride


3 Answers

Everything in the apk will be read only. And it's even better: android doesn't extract the apk when you install a program, so the size consumed is kept to minimal.

like image 171
Randy Sugianto 'Yuku' Avatar answered Nov 11 '22 22:11

Randy Sugianto 'Yuku'


You cannot write to res/drawable.

like image 21
Romain Guy Avatar answered Nov 11 '22 22:11

Romain Guy


Nope. But you can change your program to use alternate forms of storage.

http://developer.android.com/guide/topics/data/data-storage.html

like image 7
Aviendha Avatar answered Nov 11 '22 20:11

Aviendha