code: public boolean detectAndroidTablet() {
  
          //First, let's make sure we're on an Android device.
          if (!detectAndroid()) {
              return false;
          }
  
          //Special check for Android devices with Opera Mobile/Mini. They should NOT report here.
          if (detectOperaMobile()) {
              return false;
          }
  
          //Otherwise, if it's Android and does NOT have 'mobile' in it, Google says it's a tablet.
          if ((userAgent.indexOf(mobile) > -1)) {
              return false;
          } else {
              return true;
          }
      }
docs: Detects if the current device is a (self-reported) Android tablet.
  Google says these devices will have 'Android' and NOT 'mobile' in their user agent.
  @return detection of an Android tablet