Skip to content

Most visited

Recently visited




public final class AndroidThings
extends Object


Android Things library information.

This library lives on the device and is linked at runtime to the app, so it may be a different version than what the app was compiled against. This class provides a way to query the version of the library installed on the device and used at runtime, similar to android.os.Build.VERSION but specific to the Android Things library.


Nested classes

class AndroidThings.Product

AndroidThings product information. 


public static final int PREVIEW_SDK_INT

Android Things preview SDK version number.

public static final String RELEASE

Android Things release version string.

public static final int SDK_INT

Android Things SDK version number.

Inherited methods

From class java.lang.Object




Android Things preview SDK version number.

Indicates the Android Things SDK preview version, just as android.os.Build.VERSION.PREVIEW_SDK_INT does for the Android SDK. Preview SDKs may contain additional APIs in addition to those indicated by SDK_INT, but these APIs should be considered unstable and may change or disappear in future releases.

See also:



Android Things release version string.

The version string is primarily for display and informational purposes and should not be used to determine what functionality exists on the device.

See also:



Android Things SDK version number.

Indicates which Android Things APIs are available on the device, just as android.os.Build.VERSION.SDK_INT does for Android APIs. This allows callers to use new APIs if available and fall back to older APIs otherwise:

 if (AndroidThings.SDK_INT >= 5) {
   // Use APIs introduced in Android Things API version 5.
 } else {
   // Fall back to older APIs.

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)