I need to create a mobile version of a website (think m.cnn.com). Is there a way to detect if a device is a mobile phone vs a mobile tablet (e.g. iPad, Xoom, etc.)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The proper tactic isn’t to detect the device but rather to detect the capabilities. What you care about is that the client is 1024×768 or 800×480 or supports HTML5. If you get into the game of device detection you will lose — what happens when someone invents the next fancy shiny new iThing?