summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorkmccormick <kmccormick@google.com>2013-03-27 18:25:38 -0700
committerkmccormick <kmccormick@google.com>2013-03-27 18:26:16 -0700
commitbe7b87c5499ccb21e6d9c293e1b4182953666508 (patch)
tree055e594bd462a787b40a02e31a46e73f325a1e2a /docs
parenta15afd2bc4b103146497b521c09c73722a8e3725 (diff)
downloadframeworks_base-be7b87c5499ccb21e6d9c293e1b4182953666508.zip
frameworks_base-be7b87c5499ccb21e6d9c293e1b4182953666508.tar.gz
frameworks_base-be7b87c5499ccb21e6d9c293e1b4182953666508.tar.bz2
Doc update: use parse, not new
"Bug: 8014259" Change-Id: Ia7408b49303003fe87033056365cafc5b4790813
Diffstat (limited to 'docs')
-rw-r--r--docs/html/training/basics/intents/result.jd2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/training/basics/intents/result.jd b/docs/html/training/basics/intents/result.jd
index 0086913..24ecc46 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.</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);
}