Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821d4943 authored by kmccormick's avatar kmccormick Committed by Android (Google) Code Review
Browse files

Merge "Doc update: use parse, not new" into jb-mr1.1-docs

parents 6e6e861a be7b87c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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
static final int PICK_CONTACT_REQUEST = 1;  // The request code
...
...
private void pickContact() {
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
    pickContactIntent.setType(Phone.CONTENT_TYPE); // Show user only contacts w/ phone numbers
    startActivityForResult(pickContactIntent, PICK_CONTACT_REQUEST);
    startActivityForResult(pickContactIntent, PICK_CONTACT_REQUEST);
}
}