com.android.camera.action.CROP doesn't work at landscape mode -
i have issue: need take photo camera , show screen possibility crop photo taken. added suchfunction:
protected void callcropphoto(uri uri) { try { intent intent = new intent("com.android.camera.action.crop"); intent.setdataandtype(uri, "image/*"); intent.putextra("crop", "true"); intent.putextra("aspectx", avatar.getwidth()); intent.putextra("aspecty", avatar.getheight()); intent.putextra("outputx", avatar.getwidth()); intent.putextra("outputy", avatar.getheight()); intent.putextra("return-data", true); startactivityforresult(intent, crop_photo_request_code); } catch (exception ex) { // devices can't support image cropping. } }
when result camera photo call function temporary uri taken photo. when calls onactivityresult usualy result_ok , data - works good. on 1 device (android version 2.3.4) in landscape mode got result_canceled , no screen cropping appear. problem?
Comments
Post a Comment