/** * Detects if the current device is an Amazon Kindle (eInk devices only). Note: For the Kindle Fire, use the normal * Android methods. * * @return detection of a Kindle */ public boolean detectKindle() { if (userAgent.indexOf(deviceKindle) != -1 && !detectAndroid()) { return true; } return false; }
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }
/** * Detects if the current device is an Amazon Kindle (eInk devices only). Note: For the Kindle Fire, use the normal * Android methods. * * @return detection of a Kindle */ public boolean detectKindle() { if (userAgent.indexOf(deviceKindle) != -1 && !detectAndroid()) { return true; } return false; }
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }
/** * Detects if the current device is an Amazon Kindle (eInk devices only). Note: For the Kindle Fire, use the normal * Android methods. * * @return detection of a Kindle */ public boolean detectKindle() { if (userAgent.indexOf(deviceKindle) != -1 && !detectAndroid()) { return true; } return false; }
/** * Initialize Key Stored Values. */ public void initDeviceScan() { // Save these properties to speed processing this.isWebkit = detectWebkit(); this.isIphone = detectIphone(); this.isAndroid = detectAndroid(); this.isAndroidPhone = detectAndroidPhone(); // Generally, these tiers are the most useful for web development this.isMobilePhone = detectMobileQuick(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); // Optional: Comment these out if you NEVER use them this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); this.initCompleted = true; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Detects if the current device is on one of the Maemo-based Nokia Internet Tablets. * * @return detection of a Maemo OS tablet */ public boolean detectMaemoTablet() { if (userAgent.indexOf(maemo) != -1) { return true; } else if (userAgent.indexOf(linux) != -1 && userAgent.indexOf(deviceTablet) != -1 && !detectWebOSTablet() && !detectAndroid()) { return true; } return false; }
/** * Detects if the current device is on one of the Maemo-based Nokia Internet Tablets. * * @return detection of a Maemo OS tablet */ public boolean detectMaemoTablet() { if (userAgent.indexOf(maemo) != -1) { return true; } else if (userAgent.indexOf(linux) != -1 && userAgent.indexOf(deviceTablet) != -1 && !detectWebOSTablet() && !detectAndroid()) { return true; } return false; }
/** * Detects if the current device is on one of the Maemo-based Nokia Internet Tablets. * * @return detection of a Maemo OS tablet */ public boolean detectMaemoTablet() { if (userAgent.indexOf(maemo) != -1) { return true; } else if (userAgent.indexOf(linux) != -1 && userAgent.indexOf(deviceTablet) != -1 && !detectWebOSTablet() && !detectAndroid()) { return true; } return false; }
/** * Detects if the current device is a (small-ish) Android OS-based device used for calling and/or multi-media (like a * Samsung Galaxy Player). Google says these devices will have 'Android' AND 'mobile' in user agent. Ignores tablets * (Honeycomb and later). * * @return detection of an Android phone */ public boolean detectAndroidPhone() { if ((this.initCompleted == true) || (this.isAndroidPhone == true)) return this.isAndroidPhone; if (detectAndroid() && (userAgent.indexOf(mobile) != -1)) return true; // Special check for Android phones with Opera Mobile. They should report here. if (detectOperaAndroidPhone()) return true; // Special check for the HTC Flyer 7" tablet. It should report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) return true; return false; }
/** * Detects if the current device is a (small-ish) Android OS-based device used for calling and/or multi-media (like a * Samsung Galaxy Player). Google says these devices will have 'Android' AND 'mobile' in user agent. Ignores tablets * (Honeycomb and later). * * @return detection of an Android phone */ public boolean detectAndroidPhone() { if ((this.initCompleted == true) || (this.isAndroidPhone == true)) return this.isAndroidPhone; if (detectAndroid() && (userAgent.indexOf(mobile) != -1)) return true; // Special check for Android phones with Opera Mobile. They should report here. if (detectOperaAndroidPhone()) return true; // Special check for the HTC Flyer 7" tablet. It should report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) return true; return false; }
/** * 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 */ public boolean detectAndroidTablet() { // First, let's make sure we're on an Android device. if (!detectAndroid()) return false; // Special check for Opera Android Phones. They should NOT report here. if (detectOperaMobile()) return false; // Special check for the HTC Flyer 7" tablet. It should NOT report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) 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; }
/** * 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 */ public boolean detectAndroidTablet() { // First, let's make sure we're on an Android device. if (!detectAndroid()) return false; // Special check for Opera Android Phones. They should NOT report here. if (detectOperaMobile()) return false; // Special check for the HTC Flyer 7" tablet. It should NOT report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) 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; }
/** * Detects if the current device is a (small-ish) Android OS-based device used for calling and/or multi-media (like a * Samsung Galaxy Player). Google says these devices will have 'Android' AND 'mobile' in user agent. Ignores tablets * (Honeycomb and later). * * @return detection of an Android phone */ public boolean detectAndroidPhone() { if ((this.initCompleted == true) || (this.isAndroidPhone == true)) return this.isAndroidPhone; if (detectAndroid() && (userAgent.indexOf(mobile) != -1)) return true; // Special check for Android phones with Opera Mobile. They should report here. if (detectOperaAndroidPhone()) return true; // Special check for the HTC Flyer 7" tablet. It should report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) return true; return false; }
/** * 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 */ public boolean detectAndroidTablet() { // First, let's make sure we're on an Android device. if (!detectAndroid()) return false; // Special check for Opera Android Phones. They should NOT report here. if (detectOperaMobile()) return false; // Special check for the HTC Flyer 7" tablet. It should NOT report here. if (userAgent.indexOf(deviceHtcFlyer) != -1) 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; }