Code example for TelephonyManager

Methods: isNetworkRoaming

0
     *  
     * @return boolean 
     */ 
    private boolean roamingConditionMet() { 
        boolean onlyRoaming = settings.getBoolean("roaming", false);
        boolean isRoaming = telephonyManager.isNetworkRoaming();
 
        Log.d(TAG, "onlyRoaming: " + Boolean.toString(onlyRoaming));
        Log.d(TAG, "isRoaming: " + Boolean.toString(isRoaming));
 
        boolean roamingCondition = !onlyRoaming || isRoaming;
 
        return roamingCondition;
    } 
 
    /** 
     * ContentObserver to handle updates to the SMS database 
     *  
     * @author Matthew Precious 
     *  
     */