I have an image button that prompts the user to select a photo from their gallery? How would I change the image of the image button to the photo selected?
Asked
Active
Viewed 32 times
1 Answers
0
- Use the uri to get file path. May refer to How to get the Full file path from URI
BitmapFactory.decodeFile(String pathName)
to get the bitmap.setImageBitmap(Bitmap bm)
for your ImageButton

TylerQITX
- 318
- 2
- 9