Hi,

I am using the code below to start the crop image activity. The
photoUri is obtained by picking a photo. The crop activity is
displayed as expected. When the activity terminates due to the user
clicking 'Save'  onActivityResult gets called, there are no errors in
LogCat yet the output file is not there.

        final Intent intent = new Intent
("com.android.camera.action.CROP");
        intent.setClassName("com.android.camera",
"com.android.camera.CropImage");
        intent.setData( photoUri);
        final int SIZE = 48;
        intent.putExtra("outputX", SIZE);
        intent.putExtra("outputY", SIZE);
        intent.putExtra("aspectX", SIZE);
        intent.putExtra("aspectY", SIZE);
        intent.putExtra("scale", true);
        intent.putExtra("noFaceDetection", true);
        m_filename = getFileStreamPath( "icon.jpg").getAbsolutePath();
        intent.putExtra("output", Uri.parse("file:/" + m_filename));

        startActivityForResult(intent, REQUEST_CROP_IMAGE);

Thank you for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to