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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -