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

MSA Altair 4 X Good Condition
$290.0
MSA Altair 4 X  Good Condition picturehydrogen sulfide gas detector H2S MSA Altair
$45.0
hydrogen sulfide gas detector H2S MSA Altair pictureMSA 10083913 INTERNAL Li-Poly BATTERY FOR ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12*
$14.99
MSA 10083913 INTERNAL Li-Poly BATTERY FOR ALTAIR 4/ 4X MULTI-GAS DETECTOR *K12* pictureMSA Altair Pro Single-Gas Detector - Hydrogen Sulfide (H2S) - 10074136
$45.0
MSA Altair Pro Single-Gas Detector - Hydrogen Sulfide (H2S) - 10074136 pictureMSA Altair 5x Multigas Detector O2 CO H2S LEL
$319.0
MSA Altair 5x Multigas Detector O2 CO H2S LEL picture






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