Android Question Read QRCode from photo gallery


Hello everyone. i need help for this

I try to used this code and it work PERFECTLY !! but this code already set the image file. while i want to make a function where user can choose and load the qr code image from their photo gallery. Same function like Google lens

Any idea ?