What is the right use of the function
     int stopUsingNetworkFeature(int networkType, String feature)
of the ConnectivityManager?
I want to stop the use of the Type_Mobile Network, but i'm not sure
about
the right combination of the NetworkType and the Feature.
I tried

ConnectivityManager conManag = (ConnectivityManager)
          context.getSystemService(Context.CONNECTIVITY_SERVICE);
int value = conManag.stopUsingNetworkFeature( 0, "Unknown");

and also with the parameter (1, "GPRS"),  (2, "EDGE") and (3, "UMTS).
but everytime i get "-1" as result everytime, what shows me that a
failure happend.

Is this the right method to stop the use of the network and how can i
use this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to