1
I am using the function of the android camera need to change the resolution of the image to occupy my Imageview completely
code used
public void onClickCamera(View v){
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_REQUEST);
}
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) {
Bitmap photo = (Bitmap)data.getExtras().get("data");
imageView.setImageBitmap(photo);
imageView2.setImageBitmap(photo);
}
some tip or a better way to use and get the expected result or how instagram does
as I would to use imageView.setScaleType(Imageview.ScaleType.CENTER_INSIDE); could give an example if possible?
– Guilherme
I edited the answer with the example from its original code.
– carlosrafaelgn
thanks gave to solve my problem
– Guilherme