This is the Linux app named 51Degrees-Java whose latest release can be downloaded as 51degrees_Java_3.2.16.4.zip. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named 51Degrees-Java with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS:
51Degrees-Java
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:
//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");
Audience
Information Technology, Telecommunications Industry, Developers, Architects
Programming Language
Java
This is an application that can also be fetched from https://sourceforge.net/projects/fiftyone-java/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.