public boolean detectMobileQuick ( ) { // Let's exclude tablets if ( detectTierTablet ( ) ) return false ; if ( ( initCompleted == true ) || ( isMobilePhone == true ) ) return isMobilePhone ; // Most mobile browsing is done on smartphones if ( detectSmartphone ( ) ) return true ; if ( detectWapWml ( ) || detectBrewDevice ( ) || detectOperaMobile ( ) ) return true ; if ( ( userAgent . indexOf ( engineObigo ) != - 1 ) || ( userAgent . indexOf ( engineNetfront ) != - 1 ) || ( userAgent . indexOf ( engineUpBrowser ) != - 1 ) || ( userAgent . indexOf ( engineOpenWeb ) != - 1 ) ) return true ; if ( detectDangerHiptop ( ) || detectMidpCapable ( ) || detectMaemoTablet ( ) || detectArchos ( ) ) return true ; if ( ( userAgent . indexOf ( devicePda ) != - 1 ) && ( userAgent . indexOf ( disUpdate ) < 0 ) ) // no index found return true ; if ( userAgent . indexOf ( mobile ) != - 1 ) return true ; // We also look for Kindle devices if ( detectKindle ( ) || detectAmazonSilk ( ) ) return true ; return false ; }
Detects if the current device is a mobile device . This method catches most of the popular modern devices . Excludes Apple iPads and other modern tablets .