• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Need to test detect smartphone, Adroid phone in Java code  RSS feed

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.



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
Boost this thread!