summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/components
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/guide/components')
-rw-r--r--docs/html/guide/components/intents-common.jd6
-rw-r--r--docs/html/guide/components/intents-filters.jd4
2 files changed, 4 insertions, 6 deletions
diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd
index dbc14fa..8aa5fa9 100644
--- a/docs/html/guide/components/intents-common.jd
+++ b/docs/html/guide/components/intents-common.jd
@@ -1018,7 +1018,7 @@ and include email details such as the recipient and subject using the extra keys
<dt><b>MIME Type</b></dt>
<dd>
<dl>
- <dt>{@link org.apache.http.protocol.HTTP#PLAIN_TEXT_TYPE} ("text/plain")
+ <dt><code>"text/plain"</code>
<dt><code>"*/*"</code>
</dl>
</dd>
@@ -2053,7 +2053,7 @@ details such as the phone number, subject, and message body using the extra keys
<dt><b>MIME Type</b></dt>
<dd>
<dl>
- <dt>{@link org.apache.http.protocol.HTTP#PLAIN_TEXT_TYPE} (<code>"text/plain"</code>)
+ <dt><code>"text/plain"</code>
<dt><code>"image/*"</code>
<dt><code>"video/*"</code>
</dl>
@@ -2164,7 +2164,7 @@ and specify the web URL in the intent data.</p>
<dt><b>MIME Type</b></dt>
<dd>
<dl>
- <dt>{@link org.apache.http.protocol.HTTP#PLAIN_TEXT_TYPE} (<code>"text/plain"</code>)
+ <dt><code>"text/plain"</code>
<dt><code>"text/html"</code>
<dt><code>"application/xhtml+xml"</code>
<dt><code>"application/vnd.wap.xhtml+xml"</code>
diff --git a/docs/html/guide/components/intents-filters.jd b/docs/html/guide/components/intents-filters.jd
index 3dec216..0759088 100644
--- a/docs/html/guide/components/intents-filters.jd
+++ b/docs/html/guide/components/intents-filters.jd
@@ -376,9 +376,7 @@ the intent.</p>
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);
-sendIntent.setType({@link
- org.apache.http.protocol.HTTP#PLAIN_TEXT_TYPE
- HTTP.PLAIN_TEXT_TYPE}); // "text/plain" MIME type
+sendIntent.setType("text/plain");
// Verify that the intent will resolve to an activity
if (sendIntent.resolveActivity(getPackageManager()) != null) {