am 78373edb: am 837a4885: fix links and add note that adb forward must be repeated bug: 13474515 bug: 13576843
* commit '78373edb8d5838276c73a418b07f735ad20286dc': fix links and add note that adb forward must be repeated bug: 13474515 bug: 13576843
This commit is contained in:
@@ -572,9 +572,9 @@ for users to deliver your app a text response using voice input.</p>
|
|||||||
|
|
||||||
<p>To use these new APIs, pass your instance of
|
<p>To use these new APIs, pass your instance of
|
||||||
<code><a href="/reference/android/support/v4/app/NotificationCompat.Builder.html">NotificationCompat.Builder</a></code> to the
|
<code><a href="/reference/android/support/v4/app/NotificationCompat.Builder.html">NotificationCompat.Builder</a></code> to the
|
||||||
<a href="/reference/android/preview/support/notifications/WearableNotifications.html"> <code>WearableNotifications.Builder()</code></a> constructor. You can then add new
|
<a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html#WearableNotifications.Builder(android.content.Context)"> <code>WearableNotifications.Builder()</code></a> constructor. You can then add new
|
||||||
features to your notification using the
|
features to your notification using the
|
||||||
<a href="/wear/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html"
|
<a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html"
|
||||||
><code>WearableNotifications.Builder</code></a> methods. For example:</p>
|
><code>WearableNotifications.Builder</code></a> methods. For example:</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -592,10 +592,10 @@ Notification notification =
|
|||||||
.build();
|
.build();
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>The <a href="/reference/android/preview/support/notifications/WearableNotifications.Builder.html#setBigActionIcon(int)">
|
<p>The <a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html#setBigActionIcon(int)">
|
||||||
<code>setHintHideIcon()</code></a> method removes your app icon from the notification card.
|
<code>setHintHideIcon()</code></a> method removes your app icon from the notification card.
|
||||||
This method is just one example of new notification features available from the
|
This method is just one example of new notification features available from the
|
||||||
<a href="/wear/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html"
|
<a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html"
|
||||||
><code>WearableNotifications.Builder</code></a> class.</p>
|
><code>WearableNotifications.Builder</code></a> class.</p>
|
||||||
|
|
||||||
<p>When you want to deliver your notifications, be certain to always use the
|
<p>When you want to deliver your notifications, be certain to always use the
|
||||||
|
|||||||
@@ -558,7 +558,10 @@ Gmail or Google account you use with Google Play Store.</p>
|
|||||||
The emulator should show the time and an icon that indicates no device is connected.</li>
|
The emulator should show the time and an icon that indicates no device is connected.</li>
|
||||||
<li>Open a command line terminal, navigate to your Android SDK's <code>platform-tools/</code>
|
<li>Open a command line terminal, navigate to your Android SDK's <code>platform-tools/</code>
|
||||||
directory, then execute:
|
directory, then execute:
|
||||||
<pre style="margin-top:.5em">adb -d forward tcp:5601 tcp:5601</pre></li>
|
<pre style="margin-top:.5em">adb -d forward tcp:5601 tcp:5601</pre>
|
||||||
|
<p class="note"><strong>Note:</strong> You must execute this command each time you connect your
|
||||||
|
device over USB.</p>
|
||||||
|
</li>
|
||||||
<li>Return to the Android Wear Preview app. It should now indicate that it is connected to
|
<li>Return to the Android Wear Preview app. It should now indicate that it is connected to
|
||||||
the emulator. The Android Wear emulator should now show the 'g' orb icon, indicating
|
the emulator. The Android Wear emulator should now show the 'g' orb icon, indicating
|
||||||
that is is connected to your device.
|
that is is connected to your device.
|
||||||
|
|||||||
Reference in New Issue
Block a user