In my app, I use default album app for get image.
Select image, I set that image at imageview in gridView.
public void getImageFromAlbum(int position){
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(MediaStore.Images.Media.CONTENT_TYPE);
startActivityForResult(intent, PICK_IMAGE_FROM_ALBUM);
}
I need 'position' value in onActivityResult
If I use my custom activity, I use putExtra. but this case, it can't. I think position value save class value. it will be run, but I don't want it...
Solved
I just use global variable. it's so easy way. I think it's not perfect solution, but it works perfect.