From be7b87c5499ccb21e6d9c293e1b4182953666508 Mon Sep 17 00:00:00 2001 From: kmccormick Date: Wed, 27 Mar 2013 18:25:38 -0700 Subject: Doc update: use parse, not new "Bug: 8014259" Change-Id: Ia7408b49303003fe87033056365cafc5b4790813 --- docs/html/training/basics/intents/result.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/html/training/basics/intents/result.jd b/docs/html/training/basics/intents/result.jd index 008691314e5a..24ecc46f5819 100644 --- a/docs/html/training/basics/intents/result.jd +++ b/docs/html/training/basics/intents/result.jd @@ -62,7 +62,7 @@ app can properly identify the result and determine how to handle it.

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); } -- cgit v1.2.3-59-g8ed1b