Hi, i have implemented a crop image for Android 4.0.3 and Titanium sdk 2.1.0. I open the gallery of android , crop and save. My problem is that I cannot obtain the cropped image. In the Emulator works all fine and the path is returned in e1.intent.action. This is my code
Titanium.Media.openPhotoGallery({ success : function(event) { var image = event.media; var intent = Ti.Android.createIntent({ action: "com.android.camera.action.CROP", data: image.nativePath, type: 'image/*' }); intent.putExtra("outputX", 200); intent.putExtra("outputY", 200); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("scale", true); var activity = Ti.Android.currentActivity; activity.startActivityForResult(intent, function(e1) { var pathImage: e1.intent.action; }); }, error:function(error) { }, cancel : function() { } });What is wrong?
Thank you