@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_pick_image);

    imageView = (ImageView) findViewById(R.id.image);
  }
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (requestCode == PICK_IMAGE_REQ && resultCode == RESULT_OK) {
     Uri image = data.getData();
     imageView.setImageURI(image);
   }
   super.onActivityResult(requestCode, resultCode, data);
 }