简体   繁体   中英

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

I am trying to turn off the 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM