51Degrees.mobi-Java Icon

51Degrees.mobi-Java

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

3.7 Stars (3)
8 Downloads (This Week)
Last Update:
Download 51degrees.mobi_Detection_Java_2.2.9.1.zip
Browse All Files

Screenshots

Description

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

(NOTE: Also available as a dependency through the maven central repository.)

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

import fiftyone.mobile.detection.*;
import fiftyone.mobile.detection.binary.*;

4) Use the following code to start detecting devices:

Provider p = Reader.create();

BaseDeviceInfo b = p.getDeviceInfo("<INSERT_USERAGENT_HERE>");

String result = b.getFirstPropertyValue("IsMobile");

if (result.equals("True")) {

System.out.println("This Is Mobile");
}

if (result.equals("False")) {
System.out.println("This Isn't Mobile");
}

p.destroy();

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

  • 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.