在 Nexus S 4G 上打开/关闭 4g

发布于 2024-11-16 15:14:11 字数 558 浏览 4 评论 0原文

我正在尝试为我的 Nexus S 4G 编写一个 Android 小部件,用于打开和关闭 4G。

我无法弄清楚 ConnectivityManager.startUsingNetworkFeature (int networkType, String feature) 方法中的“功能”是什么意思。

这就是我想做的:

ConnectivityManager connection = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);

connection.startUsingNetworkFeature(ConnectivityManager.TYPE_WIMAX, "feature");

我想弄清楚“feature”参数是什么? Android 文档称解释权留给 OEM。有谁知道三星 Nexus S 4G 是什么?有人能在 Nexus S 4G 上做这样的事情吗?

PS:市场上可能有一些小部件,但我正在尝试通过自己编码来学习这些东西。

I am trying to write an android widget for my Nexus S 4G that toggles 4G ON and OFF.

I am not able to figure out what the "feature" means in ConnectivityManager.startUsingNetworkFeature (int networkType, String feature) method.

This is what I am trying to do:

ConnectivityManager connection = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);

connection.startUsingNetworkFeature(ConnectivityManager.TYPE_WIMAX, "feature");

I am trying to figure out what the "feature" parameter is? Android documentation says the interpretation is left to OEM. Does anyone know what it is Samsung Nexus S 4G? Was anyone able to do something like this on Nexus S 4G?

PS: There maybe a few widgets available in the market but I am trying to learn this stuff by coding myself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨落□心尘 2024-11-23 15:14:11

我想弄清楚“feature”参数是什么?

你自己已经回答了这个问题。

有人知道三星 Nexus S 4G 是什么吗?

此线程看来,字符串应该是“WiMax”,但看起来这不适用于 NS4g。

I am trying to figure out what the "feature" parameter is?

You've already answered that question for yourself.

Does anyone know what it is Samsung Nexus S 4G?

From this thread it appears that the string should be "WiMax" but it looks like this does not work NS4g.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文