diff options
author | Scott Main <smain@google.com> | 2014-05-06 16:34:30 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2014-05-06 16:34:30 -0700 |
commit | f1bc39b8ae9d63f3c7d89f3d07ec026c62de6e6e (patch) | |
tree | 43b59626663cf2a7262cf06b1e2087d2f1a9bf8b /docs | |
parent | 4146d546a4ab8465970e7c73bf1e9e00767931b6 (diff) | |
download | frameworks_base-f1bc39b8ae9d63f3c7d89f3d07ec026c62de6e6e.zip frameworks_base-f1bc39b8ae9d63f3c7d89f3d07ec026c62de6e6e.tar.gz frameworks_base-f1bc39b8ae9d63f3c7d89f3d07ec026c62de6e6e.tar.bz2 |
fix code error.
The data type was wrong, but it's actually not needed.
Change-Id: I50275fd16c72de42b75f24be6192ca974bd67488
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/components/intents-common.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd index a0f7ce1..b4813a5 100644 --- a/docs/html/guide/components/intents-common.jd +++ b/docs/html/guide/components/intents-common.jd @@ -737,7 +737,7 @@ so you can populate fields of the contact details. <pre> public void editContact(Uri contactUri, String email) { Intent intent = new Intent(Intent.ACTION_EDIT); - intent.setDataAndType(contactUri, Contacts.CONTENT_TYPE); + intent.setData(contactUri); intent.putExtra(Intents.Insert.EMAIL, email); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); |