0

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?

1 Answers1

0
  1. Use the uri to get file path. May refer to How to get the Full file path from URI
  2. BitmapFactory.decodeFile(String pathName) to get the bitmap.
  3. setImageBitmap(Bitmap bm) for your ImageButton
TylerQITX
  • 318
  • 2
  • 9