开发者

Toggle 4g ON/OFF on Nexus S 4G

开发者 https://www.devze.com 2023-03-14 02:38 出处:网络
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.s开发者_如何学运维tartUsingNetworkFe

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.s开发者_如何学运维tartUsingNetworkFeature (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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消