public boolean detectAndroid()
   {
      if ((this.initCompleted == true) ||
               (this.isAndroid == true))
         return this.isAndroid;

      if ((userAgent.indexOf(deviceAndroid) != -1) ||
               detectGoogleTV())
         return true;
      // Special check for the HTC Flyer 7" tablet. It should report here.
      if (userAgent.indexOf(deviceHtcFlyer) != -1)
         return true;
      return false;
   }
public boolean detectAndroid()
   {
      if ((this.initCompleted == true) ||
               (this.isAndroid == true))
         return this.isAndroid;

      if ((userAgent.indexOf(deviceAndroid) != -1) ||
               detectGoogleTV())
         return true;
      
      if (userAgent.indexOf(deviceHtcFlyer) != -1)
         return true;
      return false;
   }
public boolean detectAndroid ( ) { if ( ( this . initCompleted == true ) || ( this . isAndroid == true ) ) return this . isAndroid ; if ( ( userAgent . indexOf ( deviceAndroid ) != - 1 ) || detectGoogleTV ( ) ) return true ; // Special check for the HTC Flyer 7" tablet. It should report here. if ( userAgent . indexOf ( deviceHtcFlyer ) != - 1 ) return true ; return false ; }
Detects *any* Android OS-based device: phone, tablet, and multi-media player. Also detects Google TV.

@return detection of an Android device
Detects * any * Android OS - based device : phone tablet and multi - media player . Also detects Google TV .