BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-09-2009, 08:53 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Atlanta, GA
Model: 8700g
Carrier: t-mobile
Posts: 63
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Programmatically determining type of smartphone

Please Login to Remove!

Haven't been able to find out much about this topic. We're making a website to be accessed from mobile devices. As part of our analytics we want to determine what type of smartphone is accessing our site (i.e., BlackBerry, iPhone, Palm, etc.). I can't think of a good way to do this, and haven't been able to find any tools anywhere. Any thoughts?

Thanks.
__________________
-hadoob024-
Offline  
Old 03-09-2009, 12:55 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Atlanta, GA
Model: 8700g
Carrier: t-mobile
Posts: 63
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looks like I found something that might work. For anyone else trying the same, look at:

Handset Detection | The mobile web is calling !
__________________
-hadoob024-
Offline  
Old 03-09-2009, 03:04 PM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You inspect the user-agent HTTP header field - this tells you what type of device you are talking to.

A BlackBerry "User-Agent" header might look something like this:

"BlackBerry9530/4.7.0.75 Profile/MIDP-2.0 Configuration/CLDC-1.0"
Offline  
Old 03-09-2009, 03:15 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Atlanta, GA
Model: 8700g
Carrier: t-mobile
Posts: 63
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cool. Thanks. Yeah, I found some additional information on it. I've been playing around with that handset detection website. Pretty cool stuff, and it makes it pretty easy for me since they're the ones that monitor whether various User Agents for various phones change. All I have to do is make the correct API calls, and they do the rest of the work.
__________________
-hadoob024-
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$163.99
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP
$222.99
HSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$19.48
Vintage SIGNODE Crimping W14 Tool  17.5New in Box - Digital Dec RL01K-DC 5MB Data Cartridge - Vintage
$200.0
New in Box - Digital Dec RL01K-DC 5MB Data Cartridge - Vintage pictureVtg Chemistry Science Lab Beaker Stand Test Tube Bracket Clamp Industrial Dec
$15.0
Vtg Chemistry Science Lab Beaker Stand Test Tube Bracket Clamp Industrial Dec  picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.