12

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?

nbro
  • 13,796
  • 25
  • 99
  • 185
Cameron McBride
  • 6,709
  • 10
  • 39
  • 52

3 Answers3

19

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.

Randy Sugianto 'Yuku'
  • 68,307
  • 56
  • 174
  • 223
9

You cannot write to res/drawable.

Romain Guy
  • 96,789
  • 18
  • 217
  • 200
7

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

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

Aviendha
  • 683
  • 5
  • 16