Hi,
I'm getting android.content.ActivityNotFoundException: No
Activity found to handle Intent Error when I'm trying to start a
Activity.
I have added the below lines in my AndroidManifest.xml
<activity
android:name="MyCropImage"
android:process=":MyCropImage"
android:configChanges="orientation|keyboardHidden"
android:label="@string/crop_label">
<intent-filter android:label="@string/crop_label">
<action android:name="com.android.camera.action.CROP" />
<data android:mimeType="image/*" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" /
>
<category
android:name="android.intent.category.SELECTED_ALTERNATIVE" />
</intent-filter>
</activity>
>From one of my activity I'm trying to invoke "CropImage" activity
using the below code.
protected final String INTENT_CROP_IMAGE =
"com.android.camera.action.CROP";
protected void onBtnEditPhoto(View v)
{
// Set up crop image intent
Intent intentCropImage = new Intent( INTENT_CROP_IMAGE );
intentCropImage.setData( "file:///sdcard/friendfeed/full.4.jpg" );
startActivityForResult( intentCropImage,
SUB_ACTIVITY_EDIT_PHOTO );
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---