i have small doubt in the below code
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent i=new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(i, 0);
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
if(requestCode==0 && resultCode==RESULT_OK ){
Bundle extras = data.getExtras();
//get the cropped bitmap
Bitmap thePic = extras.getParcelable("data");
ImageView image =(ImageView) findViewById(R.id.imageView1);
image.setImageBitmap(thePic);
}
}
In the extras.getParcelable("data"); line of the code here "data" is passed as a key to the parcelable object.
My Question is, is there a key already with the name 'data' defined in the class? or any reason of how this is accepted.