I have One Activity name AlbumPicker. In that activity I am calling below code on Button click.
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.putExtra("Example", 40);
((Activity) _ctx).startActivityForResult(
Intent.createChooser(intent, "Select Picture"),
returnCode);
Now Gallery will open.
Then i will select one image.
then below method will get called I want Example value in below method
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
int example = data.getIntegerExtra("Example);
}
but this code failes. I always recives 0
Please help