public static function checkBrowserAndroid()
    {
        // Navigator
        if (stripos(self::$userAgentString, 'Android') !== false) {
            if (preg_match('/Version\/([\d\.]*)/i', self::$userAgentString, $matches)) {
                if (isset($matches[1])) {
                    self::$browser->setVersion($matches[1]);
                }
            } else {
                self::$browser->setVersion(Browser::VERSION_UNKNOWN);
            }
            self::$browser->setName(Browser::NAVIGATOR);

            return true;
        }

        return false;
    }
public static function checkBrowserAndroid()
    {
        // Navigator
        if (stripos(self::$userAgentString, 'Android') !== false) {
            if (preg_match('/Version\/([\d\.]*)/i', self::$userAgentString, $matches)) {
                if (isset($matches[1])) {
                    self::$browser->setVersion($matches[1]);
                }
            } else {
                self::$browser->setVersion(Browser::VERSION_UNKNOWN);
            }
            self::$browser->setName(Browser::NAVIGATOR);

            return true;
        }

        return false;
    }
public static function checkBrowserAndroid ( ) { // Navigator if ( stripos ( self :: $ userAgentString , 'Android' ) !== false ) { if ( preg_match ( '/Version\/([\d\.]*)/i' , self :: $ userAgentString , $ matches ) ) { if ( isset ( $ matches [ 1 ] ) ) { self :: $ browser -> setVersion ( $ matches [ 1 ] ) ; } } else { self :: $ browser -> setVersion ( Browser :: VERSION_UNKNOWN ) ; } self :: $ browser -> setName ( Browser :: NAVIGATOR ) ; return true ; } return false ; }
Determine if the browser is Android.

@return bool
Determine if the browser is Android .