aspose file tools*
The moose likes Android and the fly likes Need to test detect smartphone, Adroid phone in Java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Need to test detect smartphone, Adroid phone in Java code" Watch "Need to test detect smartphone, Adroid phone in Java code" New topic
Author

Need to test detect smartphone, Adroid phone in Java code

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
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

BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to test detect smartphone, Adroid phone in Java code