android - make bitmap using camera intent large -
my camera intent bitmap 160x120 think how can achieved full size bitmap
btw tried extra_output dont know how use it
i have 2 class
and main class onactivityresult this
case camera_request_code: if (resultcode == result_ok) { bitmap image1 = (bitmap) data.getextras().get("data"); if (currentview == 0) { frontview.setscaletype(scaletype.center); frontview.setimagebitmap(image1); isfrontactive = true; } else if (currentview == 1) { rearview.setscaletype(scaletype.center); rearview.setimagebitmap(camera.getimage()); isrearactive = true; } } break;
and photo.class code
public void opencamera() { file file = new file(environment.getexternalstoragedirectory(), "sample.jpg"); uri imguri = uri.fromfile(file); imagepath = file.getabsolutepath(); intent cameraintent = new intent( android.provider.mediastore.action_image_capture); cameraintent.putextra(mediastore.extra_output, imagepath); mactivity.startactivityforresult(cameraintent, camera_request_code); }
so in separate class , dont know how use extra_output please me , thank you
edit:
i call photo.class
by using
photo.opencamera(); on main class
when use reading bitmap extra, thumbnail of image.
Comments
Post a Comment