am 061d4a95: am 3af7b848: am 821d4943: Merge "Doc update: use parse, not new" into jb-mr1.1-docs

* commit '061d4a95cf924fcf113d11b2d4d001f696a65e1f':
  Doc update: use parse, not new
This commit is contained in:
kmccormick
2013-03-27 19:00:48 -07:00
committed by Android Git Automerger

View File

@@ -62,7 +62,7 @@ app can properly identify the result and determine how to handle it.</p>
static final int PICK_CONTACT_REQUEST = 1; // The request code
...
private void pickContact() {
Intent pickContactIntent = new Intent(Intent.ACTION_PICK, new Uri("content://contacts"));
Intent pickContactIntent = new Intent(Intent.ACTION_PICK, Uri.parse("content://contacts"));
pickContactIntent.setType(Phone.CONTENT_TYPE); // Show user only contacts w/ phone numbers
startActivityForResult(pickContactIntent, PICK_CONTACT_REQUEST);
}