code: 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;
     }
docs: Detects *any* Android OS-based device: phone, tablet, and multi-media player. Also detects Google TV.
  
  @return detection of an Android device