07-18-2012 05:42 AM
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 );
}