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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
ashish12169
Posts: 198
Registered: ‎03-18-2012
My Carrier: Company

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 );
    }
   

Please use plain text.