summaryrefslogtreecommitdiffstats
path: root/docs/html
diff options
context:
space:
mode:
authorkmccormick <kmccormick@google.com>2013-03-28 01:53:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-28 01:53:02 +0000
commit821d4943702e49844629ae9b522383a21210a64f (patch)
tree6bd63874c3d49c98f9354bc11eb4ab497ccedd26 /docs/html
parent6e6e861a58da7bc39e1fbad9ed8730c712e45123 (diff)
parentbe7b87c5499ccb21e6d9c293e1b4182953666508 (diff)
downloadframeworks_base-821d4943702e49844629ae9b522383a21210a64f.zip
frameworks_base-821d4943702e49844629ae9b522383a21210a64f.tar.gz
frameworks_base-821d4943702e49844629ae9b522383a21210a64f.tar.bz2
Merge "Doc update: use parse, not new" into jb-mr1.1-docs
Diffstat (limited to 'docs/html')
-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);
}