android-sdk_r10-linux_x86
Using implicit intent I cannot get the activity found.
AndroidManifest.xml:
<activity android:name="TestActivity"
android:label="@string/test_activity_title"
>
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
In Main Activity:
try {
Intent intent = new Intent("android.intent.action.PICK");
startActivityForResult(intent, 1);
} catch (ActivityNotFoundException e1) {
Log.e(e1.getMessage());
}
Install and run in emulator 2.3.1
Result:
No Activity found to handle Intent
{ act=android.intent.action.PICK ...
What am I missing here?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en