Sunday, 15 February 2015

Android where can I get image taken by native camera app -



Android where can I get image taken by native camera app -

i using native photographic camera app capture image, , not using mediastore.extra_output specify path of image. how can image using intent.

thanks.

to capture images using photographic camera phone call intent

intent cameraintent = new intent(android.provider.mediastore.action_image_capture); startactivityforresult(cameraintent, requestcode);

and handle callback utilize onactivityresult function

protected void onactivityresult(int requestcode, int resultcode, intent data) { bitmap mimagebitmap; bundle extras = data.getextras(); mimagebitmap = bitmap.createscaledbitmap( (bitmap) extras.get("data"), 100, 100, false); }

mimagebitmap hold image captured. hope helps :)

android android-camera android-camera-intent

No comments:

Post a Comment