Tuesday, December 13, 2016

Android Wear 2.0 for China - Developer Preview

Posted by Hoi Lam, Developer Advocate


Today at Google
Developer Day China
, we are happy to announce a href="https://developer.android.google.cn/wear/preview/?utm_campaign=android wear_launch_chinadeveloperpreview_121316&utm_source=anddev&utm_medium=blog">developer preview
of Android Wear 2.0 for developers creating apps for China. Android Wear 2.0 is
the biggest update since our partners launched their first devices in China last
year.



We're making a Developer Preview available today and plan to release additional
updates in the coming months. Please send us your feedback by href="http://g.co/wearpreviewbug">filing bugs or posting in our href="https://plus.google.com/communities/113381227473021565406">Android Wear
Developers community.


Developing for the Chinese Market



With Android Wear 2.0, apps can access the internet directly on Android Wear
devices. As a result, for the majority of apps, having a companion phone
application is no longer necessary. This means that most developers creating
apps for Android Wear 2.0 may no longer need to import the Google Play services
library.



There are two situations where developers will need to import Google Play
services for China:


  • Apps that require direct interaction with the paired mobile
    device
    - some experiences require Android Wear to connect directly to a
    paired phone. In this case, the href="https://developer.android.google.cn/training/wearables/data-layer/?utm_campaign=android wear_launch_chinadeveloperpreview_121316&utm_source=anddev&utm_medium=blog">Data
    Layer API introduced in Android Wear 1.0 will continue to function.
  • New href="https://developer.android.google.cn/training/articles/wear-location-detection.html?utm_campaign=building-for-wear-215&utm_source=dac&utm_medium=blog">FusedLocationProvider
    for China
    - we have added location detection to the SDK for Chinese
    developers. With the user's permission, your app can receive location updates
    via the FusedLocationProvider.


You can find more details about how to import the China compatible version of
Google Play services library href="https://developer.android.google.cn/training/wearables/apps/creating-app-china.html?utm_campaign=android wear_launch_chinadeveloperpreview_121316&utm_source=anddev&utm_medium=blog">here.


Product testing for Android Wear 2.0 for China



The Android Wear 2.0 Developer Preview includes an updated SDK with tools, and
system images for testing using the Huawei Watch.



To get started, follow these steps:


  • Update to Android Studio v2.1.1 or later
  • Visit the href="https://developer.android.google.cn/wear/preview/?utm_campaign=android wear_launch_chinadeveloperpreview_121316&utm_source=anddev&utm_medium=blog">Android Wear 2.0
    Developer Preview site for downloads and documentation
  • href="https://developer.android.google.cn/wear/preview/downloads.html?utm_campaign=android wear_launch_chinadeveloperpreview_121316&utm_source=anddev&utm_medium=blog">Download
    the device system images
  • Test your app with your supported device

Give us feedback



We will update this developer preview over the next few months based on your
feedback. The sooner we hear from you, the more we can include in the final
release, so don't be shy!




Android Wear 2.0 ??? - ??????



??: ???, Android Wear ???????



????????Google
?????
?,??????????????????Android Wear 2.0 href="https://developer.android.google.cn/wear/preview/">???????Android Wear
2.0??,???????????????????????????



???????????????????,???????????????????????????????href="http://g.co/wearpreviewbug">????,??????href="https://plus.google.com/communities/113381227473021565406">Android
Wear??????????


?????????



?Android Wear 2.0???,?????Android
Wear?????????????,?????????,??????????????????????,???Android Wear
2.0???????????????Google Play services?????



??,???????????????Google Play Services??????????????:


  • ?????????????? - ???????Android
    Wear???????????????????,Android Wear 1.0????href="https://developer.android.google.cn/training/wearables/data-layer/">Data
    Layer API?????????
  • ?? href="https://developer.android.google.cn/training/articles/wear-location-detection.html?utm_campaign=building-for-wear-215&utm_source=dac&utm_medium=blog">FusedLocationProvider
    - ?????????SDK?????????????????,????????FusedLocationProvider????????


????href="https://developer.android.google.cn/training/wearables/apps/creating-app-china.html">?????????????????Google
Play service??????


Android Wear 2.0 ???????



Android Wear 2.0 ???????????SDK??,????????(??????)?



???????????:


  • ???Android Studio?v2.1.1????
  • ?? Android Wear
    2.0 ??????
    ,??????????????
  • href="https://developer.android.google.cn/wear/preview/downloads.html">????????
  • ??????????

????



???????????????????????????????????,?????????????????????????????????!

No comments:

Post a Comment