Hye,
how do we distinguish between Android smartphone and Tablet/larger screen using Rule :
system:user_os ? There's a word "Mobile" in the string ... but what exactly to enter in the form.

Currently, Android devices provide the following (in addition to standard info) in the User-Agent: "Android", a version number, a device name, a specific build, Webkit version info, and "Mobile".

For example, Froyo on a Nexus One has the following User Agent:
Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

While Tablet/large screen device running Froyo would have a User Agent similar to:
Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; device Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Safari/533.1

Comments

mkalkbrenner’s picture

You can use a cascade with a regular expression:

system:user_os_simplified  = Android
   system:user_os ~ /Mobile/ >>> MobileTheme
   system:dummy = dummy >>> TabletTheme
mkalkbrenner’s picture

Status: Active » Closed (fixed)

no feedback