在 Nexus S 4G 上打开/关闭 4g
我正在尝试为我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你自己已经回答了这个问题。
从此线程看来,字符串应该是“WiMax”,但看起来这不适用于 NS4g。
You've already answered that question for yourself.
From this thread it appears that the string should be
"WiMax"
but it looks like this does not work NS4g.