docs: Removing references to self note on Common Intents page.
Change-Id: Ia1324f2363ce66ad0019946605a6a74a4cd28ecc
This commit is contained in:
@@ -1098,82 +1098,6 @@ public void composeEmail(String[] addresses, String subject) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 id="Note">Notes</h2>
|
||||
|
||||
|
||||
<h3 id="TakeNote">Take a note</h3>
|
||||
|
||||
<!-- Google Now box -->
|
||||
<div class="now-box">
|
||||
<div class="now-img-cont">
|
||||
<a href="#Now">
|
||||
<img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
|
||||
</a>
|
||||
</div>
|
||||
<p class="now-title">Google Now</p>
|
||||
<ul>
|
||||
<li>"take a note"</li>
|
||||
<li>"note to self"</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>To take a note, use the {@link android.content.Intent#ACTION_SEND} action and specify the
|
||||
text for the note with the {@link android.content.Intent#EXTRA_TEXT}.</p>
|
||||
|
||||
<dl>
|
||||
<dt><b>Action</b></dt>
|
||||
<dd>{@link android.content.Intent#ACTION_SEND}</dd>
|
||||
|
||||
<dt><b>Category</b></dt>
|
||||
<dd><code>com.google.android.voicesearch.SELF_NOTE</code></dd>
|
||||
|
||||
<dt><b>Data URI Scheme</b></dt>
|
||||
<dd>None</dd>
|
||||
|
||||
<dt><b>Extras</b></dt>
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>{@link android.content.Intent#EXTRA_TEXT}</dt>
|
||||
<dd>A string with the contents of the note.</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
<p><b>Example intent:</b></p>
|
||||
<pre>
|
||||
public void takeNote(String content) {
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.setType("*/*");
|
||||
intent.putExtra(Intent.EXTRA_TEXT, content);
|
||||
if (intent.resolveActivity(getPackageManager()) != null) {
|
||||
startActivity(intent);
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
|
||||
<p><b>Example intent filter:</b></p>
|
||||
<pre>
|
||||
<activity ...>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<category android:name="com.google.android.voicesearch.SELF_NOTE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 id="Storage">File Storage</h2>
|
||||
|
||||
|
||||
@@ -2643,7 +2567,7 @@ about declaring each intent filter, click on the action description.</p>
|
||||
<td>{@link android.provider.AlarmClock#ACTION_SET_TIMER AlarmClock.ACTION_SET_TIMER}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" style="vertical-align:middle">Communication</td>
|
||||
<td style="vertical-align:middle">Communication</td>
|
||||
<td>
|
||||
<p><a href="#DialPhone">Call a number</a></p>
|
||||
<ul class="now-list">
|
||||
@@ -2654,16 +2578,6 @@ about declaring each intent filter, click on the action description.</p>
|
||||
</td>
|
||||
<td>{@link android.content.Intent#ACTION_CALL Intent.ACTION_CALL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><a href="#Note">Note to self</a></p>
|
||||
<ul class="now-list">
|
||||
<li>"take a note"</li>
|
||||
<li>"note to self"</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>{@link android.content.Intent#ACTION_SEND Intent.ACTION_SEND}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="5" style="vertical-align:middle">Fitness</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user