views:

55

answers:

1

For my site I need to be able to tell the difference between when an Android tablet visits and when an Android phone visits. It needs to be detected before the page is sent to the user so using JavaScript to check the screen res isn't an option.

At the moment I use this to detect an android device: stripos($ua, 'android')

Is there anything unique thar a tablet has in it's user agent?

A: 

Checkout the WURFL project. It should be able to help you out not only in Android Phone and Android Tablet scenario but also other devices as well.

Faisal Feroz