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
  • 15,395
  • 32
  • 113
  • 196
Cameron McBride
  • 6,779
  • 11
  • 40
  • 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'
  • 71,383
  • 57
  • 178
  • 228
9

You cannot write to res/drawable.

Romain Guy
  • 97,993
  • 18
  • 219
  • 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
  • 763
  • 6
  • 16