Can I update an image in the drawable directory from code?

Posted by kknight on Stack Overflow See other posts from Stack Overflow or by kknight
Published on 2010-03-17T18:19:05Z Indexed on 2010/03/17 18:21 UTC
Read the original article Hit count: 180

Filed under:

I have a picture in res/drawable directory: res/drawable/picture.jpeg.

Can I dynamically update this picture.jpeg from code? i.e. I want to use another picture to replace this picture in the drawable directory dynamically.

If I can, what path should I use to access the picture? Should I use "res/drawable/picture.jpeg"?

Thanks.

© Stack Overflow or respective owner

Related posts about android