This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to test detect smartphone, Adroid phone in Java code

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to use USER-AGENT in Java to detect if the requester of my servlet is smartphone (or Android or iPhone or iPad). Can someone with those devices run this URL and post the result here? I do not have a smartphone.

Thanks!

http://www.crazybikes.com:8011/mrcjava/servlet/detect

When I run it from PC the result is (correctly):

Is mobile: false
Is Android: false
Is smart phone:t false
Is iPhone:false
Is iPad: false
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic