android - Trouble with Crop Intent -
i having trouble crop intent
. can take photos, when code gets crop function , tries make transaction onactivityresult
function error:
11-17 19:38:13.383 1335-2873/? e/javabinder: !!! failed binder transaction !!! (parcel size = 635380) 11-17 19:38:13.384 1335-2873/? w/activitymanager: exception in new application when starting activity com.tedosoft.carmaintaintance/com.tedosoft.carmaintenance.addeditpart android.os.transactiontoolargeexception: data parcel size 635380 bytes @ android.os.binderproxy.transactnative(native method) @ android.os.binderproxy.transact(binder.java:503) @ android.app.applicationthreadproxy.schedulelaunchactivity(applicationthreadnative.java:826) @ com.android.server.am.activitystacksupervisor.realstartactivitylocked(activitystacksupervisor.java:1316) @ com.android.server.am.activitystacksupervisor.attachapplicationlocked(activitystacksupervisor.java:657) @ com.android.server.am.activitymanagerservice.attachapplicationlocked(activitymanagerservice.java:6304) @ com.android.server.am.activitymanagerservice.attachapplication(activitymanagerservice.java:6367) @ android.app.activitymanagernative.ontransact(activitymanagernative.java:512) @ com.android.server.am.activitymanagerservice.ontransact(activitymanagerservice.java:2551) @ android.os.binder.exectransact(binder.java:453)
11-17 19:38:13.384 1335-2873/? e/activitymanager: exception thrown launching activities in processrecord{9174c5f 22014:com.tedosoft.carmaintaintance/u0a265} android.os.transactiontoolargeexception: data parcel size 635380 bytes @ android.os.binderproxy.transactnative(native method) @ android.os.binderproxy.transact(binder.java:503) @ android.app.applicationthreadproxy.schedulelaunchactivity(applicationthreadnative.java:826) @ com.android.server.am.activitystacksupervisor.realstartactivitylocked(activitystacksupervisor.java:1316) @ com.android.server.am.activitystacksupervisor.attachapplicationlocked(activitystacksupervisor.java:657) @ com.android.server.am.activitymanagerservice.attachapplicationlocked(activitymanagerservice.java:6304) @ com.android.server.am.activitymanagerservice.attachapplication(activitymanagerservice.java:6367) @ android.app.activitymanagernative.ontransact(activitymanagernative.java:512) @ com.android.server.am.activitymanagerservice.ontransact(activitymanagerservice.java:2551) @ android.os.binder.exectransact(binder.java:453)
i testing app on real device sony xperia m4 aqua 6.0 m. problem, , can't seem find solution it. tried make file camera intent
, ended getting activitynotfound
exception. code:
public void performcrop(){ //call standard crop action intent (the user device may not support it) try { intent cropintent = new intent("com.android.camera.action.crop"); //indicate image type , uri cropintent.setdataandtype(picuri, "image"); //set crop properties cropintent.putextra("crop", "true"); //indicate aspect of desired crop cropintent.putextra("aspectx", 1); cropintent.putextra("aspecty", 1); //indicate output x , y cropintent.putextra("outputx", 10); cropintent.putextra("outputy", 10); cropintent.putextra("return-data", true); //start activity - handle returning in onactivityresult startactivityforresult(cropintent, pic_crop); } catch (activitynotfoundexception e) { toast.maketext(this, getresources().getstring(r.string.toast_add_part_no_crop), toast.length_short).show(); } }
any of use. thanks!
Comments
Post a Comment