51Degrees.mobi-Java Icon

51Degrees.mobi-Java

Mobile Device Detection for Java - 4 Step Setup - 3 minutes

3.7 Stars (3)
11 Downloads (This Week)
Last Update:
Download 51Degrees-Java-3.1.4.8.zip
Browse All Files

Screenshots

Description

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:

Provider p;
// Uses inbuilt lite data.
p = new Provider();
// An external data file can also be used.
// p = new Provider(StreamFactory.create("PATH_TO_DATA"));

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

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

51Degrees.mobi-Java Web Site

Update Notifications





User Ratings

★★★★★
★★★★
★★★
★★
2
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
Write a Review

User Reviews

  • bladder
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Quick and easy to use!

    Posted 02/12/2013
  • lukaswhite
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    no trouble to install and run, works nicely.

    Posted 12/18/2012
  • jameshanson
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    fiftyone-java is fast and stable

    Posted 11/02/2012
Read more reviews

Additional Project Details

Intended Audience

Developers, Information Technology, Architects, Telecommunications Industry

Programming Language

Java

Registered

2012-08-08
Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.