Not able to crop image in android -


i have choose image either gallery or capture camera, want crop image have got,

so, using following code call crop intent,

intent cropintent = new intent("com.android.camera.action.crop"); //indicate image type , uri cropintent.setdataandtype(imageuri, "image/*"); //set crop properties cropintent.putextra("crop", "true"); //retrieve data on return cropintent.putextra("return-data", true);  try {       startactivityforresult(cropintent, request_code_for_crop_done); } catch (activitynotfoundexception actionnotfoundexception) {       log.e(tag, actionnotfoundexception.getmessage(), actionnotfoundexception);       toast.maketext(fragment.getactivity(), fragment.getresources().getstring(r.string.crop_not_available), toast.length_short).show(); } 

i using nexus 6p device , seems on device facing issue.

this gives me toast message saying can not crop image below 50 x 50.

may know missing?

this com.android.camera.action.crop intent doesn't work on devices, should use libraries croping


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -