Looking for a User Agent String to detect the kind of cell phone?
Does anyone know a good user agent string that will tell me if the开发者_如何学C cell phone is an iPhone, Blackberry, Android, DumbPhone??
Have a look at WURFL. It has a device capability database, and an associated API for PHP and Java that matches user agents to devices in the database. And it's free.
A commercial alternative is DeviceAtlas, but API is a good deal more primitive than WURFL's.
精彩评论