What u want to desire can be done in some different way. In Gallery, Menu->Share-> Here u can show your app in the list of Sharing apps and u can receive image directly (Here you can show any popup or do whatever u want.)
For making your app visible in the list of sharing apps, you will need to apply intent-filter in your app. There are lots of related links and queries for performing above.
<activity android:name=".ui.MyActivity" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>