I implemented 3 tab in my MainActivity. 1st tab is Images fragment in which 2 buttons is implemented. 1st is to open camera and 2nd is to open gallery. I want to display that captured or selected image in new Activity called Upload Activity.
Images Fragment
 @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    //  return inflater.inflate(R.layout.fragment_images, container, false);
    View v = inflater.inflate(R.layout.fragment_images, container, false);
    FloatingActionButton btnCamera = (FloatingActionButton) v.findViewById(R.id.btnCamera);
    FloatingActionButton btnFolder = (FloatingActionButton) v.findViewById(R.id.btnFolder);
    btnCamera.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            File imageFolder = new File(Environment.getExternalStorageDirectory(), "/My Children");
            imageFolder.mkdir();
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd");
            String timestamp = simpleDateFormat.format(new Date());
            File image = new File(imageFolder, timestamp+ ".jpg");
            //    Uri uriImage = Uri.fromFile(image);
            Uri uriImage = FileProvider.getUriForFile(getActivity(), BuildConfig.APPLICATION_ID +  ".provider", image);
            Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
            intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
            intent.putExtra(MediaStore.EXTRA_OUTPUT, uriImage);
            getActivity().startActivityForResult(intent, TAKE_PICTURE);
        }
    });
    btnFolder.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Intent intent = new Intent();
            intent.setType("image/*");
            intent.setAction(Intent.ACTION_GET_CONTENT);
            getActivity().startActivityForResult(intent, SELECT_PICTURE);
        }
    });
    return v;
}
    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
 try {
if (requestCode == TAKE_PICTURE && resultCode == RESULT_OK) {
    Bundle extras = data.getExtras();
    Bitmap cam = (Bitmap) extras.get("data");
    Intent i = new Intent().setClass(getActivity(), Upload.class);
    i.putExtra("image", cam);
    startActivity(i);
}
if (requestCode == SELECT_PICTURE && requestCode == RESULT_OK) {
    Bitmap bitmap = (Bitmap) data.getExtras().get("data");
    Intent i = new Intent(getActivity(), Upload.class);
    i.putExtra("image", bitmap);
    startActivity(i);
}
}catch (Exception e){
e.printStackTrace();
}
Also added this code in MainActivity
 @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Fragment page = getSupportFragmentManager().findFragmentByTag("android:switcher:" + R.id.vp_pages + ":" + vp_pages.getCurrentItem() );
    if (page != null){
        page.onActivityResult(requestCode, resultCode, data);
    }
}
This is Upload class where i want display image
public class Upload extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_upload);
    Button btnUpload = (Button) findViewById(R.id.btnUpload);
    ImageView imageview = (ImageView) findViewById(R.id.imageview);
    Intent intent = getIntent();
    Bitmap bitmap = (Bitmap) intent.getParcelableExtra("image");
    imageview.setImageBitmap(bitmap);
 }
 }
After captring or selecting image, the Images fragment is opening instead of Upload Activity.
