Add mobile device detection to Java the easy way with 51Degrees.com. No cloud services, no external plug-ins, all Mozilla Public Licence source code. It's a great alternative to WURFL or DeviceAtlas.

Also available on Maven.

1) Download the zip and extract.
2) Add the core JAR located in the "dist" directory to your java project.
3) Import the following packages:

import fiftyone.mobile.detection.Match;
import fiftyone.mobile.detection.Provider;
import fiftyone.mobile.detection.factories.StreamFactory;

4) Use the following code to start detecting devices:

//The Lite data file is provided with every archive.
Provider p = new Provider(StreamFactory.create("path/to/data/file"));

Match match = p.match("USERAGENT_STRING");
boolean isMobile = match.getValues("IsMobile").toBool();

if(isMobile)
System.out.println("Mobile");
else
System.out.println("Not mobile");

Project Samples

Project Activity

See All Activity >

Categories

WAP, Internet, Mobile

License

Mozilla Public License 2.0 (MPL 2.0)

Follow 51Degrees-Java

51Degrees-Java Web Site

Other Useful Business Software
The most trusted software in construction Icon
The most trusted software in construction

HCSS is the gold standard software solution for winning, planning, and managing construction projects by connecting the office to the field.

HCSS provides easy-to-use software built for construction companies that want to win more work, work smarter, and boost profits. For nearly 40 years, we've helped heavy civil contractors, infrastructure builders, and utility companies improve operations, from estimating and project management to field tracking, equipment maintenance, and safety. Tools like HeavyBid, HeavyJob, and HCSS Safety are built for the field and designed to work together, giving your team real-time visibility, tighter cost control, and better job outcomes. With 45+ accounting integrations and customizable APIs, HCSS fits seamlessly into your tech stack. We regularly update our software based on feedback from real crews, ensuring it fits the way your team works. Backed by award-winning 24/7/365 support and a proven implementation process, HCSS helps reduce risk, cut inefficiencies, and deliver fast ROI. If you're ready to grow your business and gain a competitive edge, HCSS is the partner that gets you there.
Learn More
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
0
0
0
0
1
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

User Reviews

  • Quick and easy to use!
Read more reviews >

Additional Project Details

Intended Audience

Architects, Developers, Information Technology, Telecommunications Industry

Programming Language

Java

Related Categories

Java WAP Software, Java Internet Software, Java Mobile Software

Registered

2012-08-08