-4

I want to add some configuration in my application. I want to give users the possibility to active wifi or 3G from the same application, please tell me what i should do. thanks

user2207848
  • 47
  • 3
  • 9

2 Answers2

3

Follow these links

for Wifi 1 Wifi 2

For 3G2

For 3G2

more link on them wifi 3 3g 3

I hope would be helpful.

Community
  • 1
  • 1
JNI_OnLoad
  • 5,472
  • 4
  • 35
  • 60
0

to get wifi config use:

Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
startActivity(intent);

don't forget to add the following line in the Manifest

<uses-permission android:name="android.permission.INTERNET"/>
Med Besbes
  • 2,001
  • 6
  • 25
  • 38