It is my understanding that tasks like selecting a contact or an image
on the phone is best implemented by asking the system to provide a
view to perform the action. I tried the example in the documentation:
startActivityForResult(
new Intent(Intent.ACTION_PICK,
new Uri("content://contacts")), //actually using
Uri.parse("content://contacts");
PICK_CONTACT_REQUEST);
but I get the following exception:
08-31 17:42:59.752: ERROR/AndroidRuntime(190):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.PICK data=content://contacts }
I am calling the startActivityForResult method from the onClick()
method of a button listener.
I am assuming that the emulator has some sort of view installed for
contacts (since it is available from the main view). So, specifically,
what is the correct URI to select a contact? In general, is there a
list someplace of expected views and how can I query the system for
available views.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---