开发者

Enabling and disabling network connection in android

开发者 https://www.devze.com 2023-02-20 21:55 出处:网络
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

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 adva开发者_JS百科nce


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

0

精彩评论

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