开发者

how to turn internet connection (GPRS/EDGE/3G) on/off

I am trying to turn off the 开发者_StackOverflow中文版internet connectivity thru android app like GPRS/EDGE/3G. When needed I need to turn on the same. But I could not find how to do that.

What is the API which supports this. Please help me.


Thanks to Sarwar Erfan

"This project does what you want to do. Review code of this project: code.google.com/p/apndroid – Sarwar Erfan"


Did you try putting the phone on airline mode? It should stop all incoming and outgoing data, phone calls but still let the user play around with data/applications already on the phone.

You can check the settings that deal with putting a phone on airline mode here.

HTH,
Sriram

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜