Skip to content Skip to sidebar Skip to footer

Can I Update An Image In The Drawable Directory From Code?

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 pict

Solution 1:

Can I dynamically update this picture.jpeg from code?

No. Resources are part of the signed APK file and cannot be modified at runtime, other than by shipping an updated APK to your users.

Post a Comment for "Can I Update An Image In The Drawable Directory From Code?"