Judul : Android Wear 2.0 for China - Developer Preview
link : Android Wear 2.0 for China - Developer Preview
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">下载手表系统镜像
- 在手表上测试您的应用
开发反馈
我们会根据您的反馈在未来的几个月中更新开发者预览版。您给我们的反馈越早,我们将会在最终的发布版本中包含更多针对您的反馈的解决方案。敬请期待!
Demikianlah Artikel Android Wear 2.0 for China - Developer Preview
Anda sekarang membaca artikel Android Wear 2.0 for China - Developer Preview dengan alamat link https://androidthenews.blogspot.com/2016/12/android-wear-20-for-china-developer.html
0 Response to "Android Wear 2.0 for China - Developer Preview"
Posting Komentar