-1

in my application i can enable and disable wifi connection.After disabling wifi connection it switches to mobile network for accessing internet.I want to disable mobile connection also and then enable it after a certain period.I am enabling and disabling wifi using WifiManager. But what to do enable/disable 2g/3g mobile network.Thanks in advance

Rasel
  • 15,499
  • 6
  • 40
  • 50

1 Answers1

1

The simplest way (and only one?) is to rename the APN and then rename it back. Is beeing used by many apps

pbu
  • 163
  • 1
  • 2
  • 7