Android 3.x image crop freezing(motorola xoom and acer iconia) -
intent intent = new intent("com.android.camera.action.crop"); file path = this.getexternalfilesdir("tmp"); file file = new file(path, "tmp_" + string.valueof(system.currenttimemillis()) + ".jpg"); uri tmpuri = uri.fromfile(file); intent.setdata(selectedimage); intent.putextra(mediastore.extra_output, tmpuri); intent.putextra("outputformat", bitmap.compressformat.jpeg.tostring()); intent.putextra("crop", "true"); intent.putextra("scale", "true"); intent.putextra("outputx", 100); intent.putextra("outputy", 100); intent.putextra("aspectx", 1); intent.putextra("aspecty", 1); intent.putextra("return-data", false); startactivityforresult(intent, request_crop);
i using code crop image. works on android 2.x. on 3.1(motorola xoom) , 3.2(acer iconia) application freeze after select crop area , tap "save" (onactivityresult not called). there real uri real image in selectedimage variable, problem not here.
on 3.1 , 3.2 android emulators application works too. know what's problem?
the problem crop activity started. "crop" = "true" not guaranteed work on devices since unofficial.
see thread more details: http://groups.google.com/group/android-developers/browse_frm/thread/2dd647523926192c/4b6d087073a39607?tvc=1#4b6d087073a39607
Comments
Post a Comment