Does Android Wear support direct access to the Internet?

后端 未结 2 969
野性不改
野性不改 2020-12-01 20:18

As an android wear developer, Can we directly access network through http request ? In my case, I want to send a http request to get Yahoo Financial API stock data, but it a

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 20:49

    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.

提交回复
热议问题