am 2c374e64: am 82957e38: Merge "docs: Fixed typo in intents page. Bug: 16949177" into klp-modular-docs
* commit '2c374e643d6cce73a71fb57559f898b6b554e36c': docs: Fixed typo in intents page. Bug: 16949177
This commit is contained in:
@@ -1678,7 +1678,7 @@ android.net.Uri}s pointing to the images/videos to attach.</dd>
|
|||||||
<p><b>Example intent:</b></p>
|
<p><b>Example intent:</b></p>
|
||||||
<pre>
|
<pre>
|
||||||
public void composeMmsMessage(String message, Uri attachment) {
|
public void composeMmsMessage(String message, Uri attachment) {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SENDTO);
|
||||||
intent.setType(HTTP.PLAIN_TEXT_TYPE);
|
intent.setType(HTTP.PLAIN_TEXT_TYPE);
|
||||||
intent.putExtra("sms_body", message);
|
intent.putExtra("sms_body", message);
|
||||||
intent.putExtra(Intent.EXTRA_STREAM, attachment);
|
intent.putExtra(Intent.EXTRA_STREAM, attachment);
|
||||||
|
|||||||
Reference in New Issue
Block a user