I'm using the android camera function I need to change the image resolution to occupy my ImageView completely
used code
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);
}
Any tips or a better way to use and get the expected result or how instagram does