Does Android Wear support direct access to the Internet?

懵懂的女人 提交于 2019-11-27 09:10:35

WiFi means that you'll be able to use the Wear Data Layer APIs (MessageApi, DataApi, ChannelApi, etc) when your phone and Wear device are not directly connected via Bluetooth.

Edit: While attached on wifi, you will be able to do direct HTTP requests - however do note that once reconnected to Bluetooth, that ability is removed so ensure that if you do take advantage of that additional functionality, you ensure your app works equally well in both situations (or has the appropriate fallback behavior/warnings to the user).

There is no limitation on your wifi in terms of restricting calls that it can make; when you are disconnected from your phone, and your wifi is on, you can definitely make internet calls through your wifi; you can test that by writing a simple application that makes an http call. However, it is best not to rely on wifi for that purpose since wifi is often not available and unless you take adequate measures to ensure there is a fallback, users of your app may be disappointed.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!