02-19-2013 12:07 PM - edited 02-19-2013 12:27 PM
I want to enable the wifi internet programatically in blackberry. How could i achieve this. Please help me for this.
02-19-2013 12:42 PM
Welcome to the forum. I believe this question has been asked before. Use the Search box (near top right) and see if you can find the answer for yourself. If not, come back.
02-19-2013 12:58 PM
If found this code for this.
int i = RadioInfo.getActiveWAFs();
int iState = RadioInfo.getState();
if (iState==0){
Radio.activateWAFs(RadioInfo.WAF_3GPP); //for GSM
Radio.activateWAFs(RadioInfo.WAF_CDMA); //for CDMA
//switches the network on
}
if (iState==1){
Radio.deactivateWAFs(i);
//switches the network off
}
Is it for enable the wifi or mobile data internet.??
02-19-2013 04:57 PM