When I call :
private void openGallery() {
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
getActivity().startActivityForResult(Intent.createChooser(intent, "Select Picture"),
PICK_IMAGE);
}
not execute never this :
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
And I have also implemented this :
// @Override
// public void startActivityForResult(Intent intent, int requestCode) {
// // TODO Auto-generated method stub
// super.startActivityForResult(intent, requestCode);
//
// }
but still not working.
I have this structure ActionBarAcitivy - > FragmentPagerAdapter -> Fragment - > Fragment - > here startActivityForResult "Fragment"
Note this code extends "Fragment"
THIS POST NOT RESOLVE !
Note after experience :
Not exist any form, I spend 3 days with this issue, and -1 fragments, I put all in a activity (actionbaractivity)
I will not bother to use many fragments, What a programmer can't do is waste time discovering imaginary code.