Just lately I’ve noticed that on Android your app goes to the background when capturing images / opening the gallery. Sometimes it can even happen that your app is killed in the background and completely restarted after selecting an image!
Perhaps give this solution a try - basically listen to the onResume event of your app and see if you can grab the data of the image from there.