Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Device detection on the server  RSS feed

 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know that we can get device information from the User-Agent property. Are there any open source APIs that can retrieve the phone brand and model from this string. Parsing the string does not seem to be a very clean approach.

I need the phone make and model for downloading the appropriate midlet.
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you have the phone pass/push that information directly to the server, rather than the server trying to pull that information from the device?

Mark
 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

We can always make a wml page with a list of phones and models. The user can make the selection and this information can be passed to the server. (If this is what you meant by pass/push).

However, I don�t want the user to go through all these lists. The user should just select the link of JAD and the appropriate midlet should be downloaded.

Danish
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

you can get the device and model number on the server
you need to read the uaprof_header in http header in that you will get the information about that!
and can make the selection!

i ahve code for this

jig2nesh@hotmail.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!