motiver
motiver

Reputation: 2202

Toggle 4g ON/OFF on Nexus S 4G

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.

Upvotes: 1

Views: 779

Answers (1)

Matt Ball
Matt Ball

Reputation: 360056

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.

Upvotes: 1

Related Questions