I need something little different than usual.
I have like 20 buttons that can take image. I use same handler. Depending on what button clicked – I just pass “ButtonIndex” inside intent to camera. I would like to get that value back in OnActivityResult so I know what to process.
Is that possible? I tried to read from returned intent but value get’s lost.
Yep. You can use
startActivityForResult (Intent intent, int requestCode)
The requestcode will be returned when the activity exits.