Ahoj, mam bugreport. Pouzivam tablet Motorola Xoom a nyx se mi serviruje v mobilni verzi. Bylo by dobre rozlisovat mezi androidem na mobilu a na tabletu. Muj User-Agent:
Mozilla/5.0 (Linux; U; Android 3.2; en-us; MZ601 Build/H.6.5-17-1) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
Zatimco na mobilu je UA napr. takovyto:
Mozilla/5.0 (Linux; U; Android 2.2; en-us; Droid Build/FRG22D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Rozdil je v tom "Mobile".
viz:
How do detect Android Tablets in general. Useragent? - Stack Overflow
http://stackoverflow.com/questions/5341637/how-do-detect-android-tablets-in-general-useragent