summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorChris Smith <cjs@google.com>2014-07-16 18:18:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-16 18:18:59 +0000
commit93a412ea39cb585dc8e0fa97936c1d0925d0993b (patch)
treec1affbf888b2e090a73333b19c40cdddadffc18a /docs/html/training
parent54892c8b813eb2de3c5c6bcd08c90b8dd0abbec8 (diff)
parent23a0b3d9d5e77a3fe5d353339c181bf729de4ff8 (diff)
downloadframeworks_base-93a412ea39cb585dc8e0fa97936c1d0925d0993b.zip
frameworks_base-93a412ea39cb585dc8e0fa97936c1d0925d0993b.tar.gz
frameworks_base-93a412ea39cb585dc8e0fa97936c1d0925d0993b.tar.bz2
am 23a0b3d9: am 211c5844: am 7a047941: docs: Fix minor issues with Wear data events docs.
* commit '23a0b3d9d5e77a3fe5d353339c181bf729de4ff8': docs: Fix minor issues with Wear data events docs.
Diffstat (limited to 'docs/html/training')
-rw-r--r--docs/html/training/wearables/data-layer/events.jd5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/html/training/wearables/data-layer/events.jd b/docs/html/training/wearables/data-layer/events.jd
index 0146c4e..a37afe0 100644
--- a/docs/html/training/wearables/data-layer/events.jd
+++ b/docs/html/training/wearables/data-layer/events.jd
@@ -43,7 +43,8 @@ pendingResult.setResultCallback(new ResultCallback&lt;DataItemResult&gt;() {
&#64;Override
public void onResult(final DataItemResult result) {
if(result.getStatus().isSuccess()) {
- Log.d(TAG, "Data item set: " + result.getDataItem().getUri());
+ Log.d(TAG, "Data item set: " + result.getDataItem().getUri());
+ }
}
});
</pre>
@@ -293,7 +294,7 @@ public class MainActivity extends Activity implements
&#64;Override
protected void onStop() {
if (null != mGoogleApiClient && mGoogleApiClient.isConnected()) {
- Wearable.NodeApi.removeListener(mGoogleApiClient, this);
+ Wearable.DataApi.removeListener(mGoogleApiClient, this);
mGoogleApiClient.disconnect();
}
super.onStop();