Did Android 5.0 change the result of ACTION_IMAGE_CAPTURE intent? -


intent captureimageintent = new intent(mediastore.action_image_capture); startactivityforresult(captureimageintent, take_first_image_request_code); 

in onactivityresult(int requestcode, int resultcode, intent data)

string mediakey = "data"; case take_first_image_request_code:    mimageuri1 = data.getdata();     if (mimageuri1 != null) {        mimagebitmap1 =  (bitmap) data.getextras().get(mediakey);                     postcaptureimg1();    } else {        logd(tag, "mimageuri1 == null");    } break; 

the code works fine on android version < 5.0. however, on 5.0, no longer works, mimageuri1 null.

anything changed in android 5.0 causes this?

the code works fine on android version < 5.0

no, not. happened work in limited testing because particular camera app used happened return uri (presumably, value supplied via extra_output). however, there nothing in the documentation action_image_capture requires camera apps return uri. there hundreds, perhaps thousands of camera apps, both pre-installed ones , ones installed public channels play store. not rely upon getting uri in onactivityresult().

anything changed in android 5.0 causes this?

perhaps camera app using changed no longer package uri in result. legitimate, per documented protocol.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -