views:

21

answers:

0

Hi, I'm starting out with android development, and am really confused by the javadoc on intents. For example I'm trying to launch the intent:

android.provider.ContactsContract.Intents.ATTACH_IMAGE

I try to launch it with:

Intent test = new Intent(ContactsContract.Intents.ATTACH_IMAGE);
startActivity(test);

and it returns an ActivityNotFoundException

The javadoc says:

public static final String ATTACH_IMAGE Since: API Level 5

Starts an Activity that lets the user pick a contact to attach an image to. After picking the contact it launches the image cropper in face detection mode. Constant Value: "com.android.contacts.action.ATTACH_IMAGE"

Can anyone explain how to interpret this and launch the intent properly?

Thanks! David.