I have a Dialog window created via the onCreateDialog() callback of my Actvity. In the Dialog I would like to allow the user to enter an email address or to select a contact from their contact list and have the email address populated based on their choice. This can be accomplished using:
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
startActivityForResult(intent, CHOOSE_CONTACT);
However since the Dialog is not itself an Activity I cannot use this method, the best I can do is
context.startActivity()
How can I launch the contact list from a Dialog and get a result?