Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

Radio Info Class Problem with getSupportedWAFs() methode

Sir,

          please suggest how this code work....

      

            In both of below methodes he used     RadioInfo.getSupportedWAFs() and it return 21 in both the cases then            how he decide whether  wifi or other WAF's are supported or Not...

 

public boolean isCellularDataServiceSupported()

{
       return ( ( RadioInfo.getSupportedWAFs() & ( RadioInfo.WAF_3GPP | RadioInfo.WAF_CDM |                   

                        RadioInfo.WAF_IDEN ) ) > 0 );
   }   
 private boolean isWifiSupported()

   {
        return ( (RadioInfo.getSupportedWAFs() & RadioInfo.WAF_WLAN) > 0 );
    }