Toggle the services(EDGE/GPRS) of data by program for OS 7.0 and higher

Hello

My application must disable WiFi and turn on the services(EDGE/GPRS) of data by program. And when data services are activated, send a request to the server, and after that, disable the services of data and turn on Wi - Fi.

Using following code:

1. to disable Wifi:

If (WLANInfo.getWLANState () == WLANInfo.WLAN_STATE_CONNECTED) {}
peripheral is connected via Wi - Fi
Radio.deactivateWAFs (RadioInfo.WAF_WLAN);

}

2. to turn off data services:

Radio.deactivateWAFs (RadioInfo.WAF_3GPP)

3. to activate data services of:

Radio.activateWAFs (RadioInfo.WAF_3GPP);

Reference: http://supportforums.blackberry.com/t5/Java-Development/How-to-turn-off-Data-services/m-p/1171307#M1...

This does not work for me. I don't get the persistence solution.

I searched a lot but little do not a solution.

How can I turn on/off data through code services.

Thanks Peter!

This API is works well at my end when I checked with BIS activated SIM:

To activate data services:
Radio.activateWAFs (RadioInfo.WAF_3GPP);
It is located on the mobile network.

To turn off data services:
Radio.deactivateWAFs (RadioInfo.WAF_3GPP);
It turns off the mobile network.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Impossible to share the internet connection on the mac pro with the 5s iPhone book

    Hi, I use Internet on my mac pro book using ethernet I try to connect to internet on my iPhone 5 s using internet sharing. When I try to connect my iPhone using wifi it shows that there is an authentication failure Please help me solve the problem Th

  • Qosmio X 300-no-work touch above keyboard

    After a manual install my touchscreen above the keyboard appears dark, but it lights up briefly when I touch, howerver activate any of the applications that are associated with the buttons on the Panel. What is missing here? Everything else in the sy

  • Satellite A210: Fact of recovery - lack of data on the E drive

    My laptop is Toshiba Satellite A210.Through training the sales package is a system recovery with factory settings.Now a Virgin pure hate, or even delete what was NOT on the system drive. I tried to restore the information through various programs (R-

  • report generation tool

    How to add an image in the footer of a Word report? Please someone help.

  • How to use IBCLR in Visual Basic

    I suck at programming and the recommendations of the syntax of the API on http://www.ni.com/pdf/manuals/321038g.pdf do not work. I use Visual Basic 2010 Express. I get a lot of messages to work, but I think I'm leaving data in the buffer with some co