Welcome to the DeviceAtlas Cloud Java code repository.
An easy and reliable way to identify device type (mobile phone, tablet, desktop, TV, etc.) and other device properties.
The following data points are available in the free version:
- Hardware Type
- OS Name
- OS Version
- Browser Name
- Browser Version
- Browser Rendering Engine
If you need additional device properties or higher usage limits, you can easily upgrade to our paid Cloud or locally deployed versions. Please visit Pricing and Trial for more details.
- Checkout the source code
- Run Gradle (gradle build) or Maven (mvn package)
- Get your Free DeviceAtlas Cloud licence
Alternatively, you can use dependency management tools to get the library from Maven Central.
- Edit your project dependencies (see the details below)
- Get your Free DeviceAtlas Cloud licence
<dependency>
<groupId>com.deviceatlas</groupId>
<artifactId>deviceatlas-cloud-java-client</artifactId>
<version>2.0.0</version>
</dependency>
compile 'com.deviceatlas:deviceatlas-cloud-java-client:2.0.0'
Client client = Client.getInstance(new EhCacheCacheProvider());
client.setLicenceKey(licenceKey);
Result result = client.getResult(request);
Properties properties = result.getProperties();
See Cloud Client API readme for further documentation.
DeviceAtlas is the world's leading device detection solution providing data on all mobile and connected devices including smartphones, tablets, laptops, and wearable devices. You can use device detection to analyse web traffic, redirect or adapt content for mobile audiences, or to target specific mobile devices.
Find more at https://deviceatlas.com/
Copyright (c) 2008-2016 by Afilias Technologies Limited. All rights reserved. https://deviceatlas.com