# AndroidThings

Summary:[Nested Classes](https://developer.android.com/reference/com/google/android/things/AndroidThings#nestedclasses)\|[Fields](https://developer.android.com/reference/com/google/android/things/AndroidThings#lfields)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/things/AndroidThings#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/com/google/android/things/AndroidThings#)  

# AndroidThings

`
public

final

class
AndroidThings
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-----------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | com.google.android.things.AndroidThings |

<br />

*** ** * ** ***

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.

## Summary

|                                                                      ### Nested classes                                                                       ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [AndroidThings.Product](https://developer.android.com/reference/com/google/android/things/AndroidThings.Product) AndroidThings product information. |

|                                                                                                                        ### Fields                                                                                                                        ||
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final int`                                                                | [PREVIEW_SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#PREVIEW_SDK_INT) Android Things preview SDK version number. |
| ` public static final `[String](https://developer.android.com/reference/java/lang/String) | [RELEASE](https://developer.android.com/reference/com/google/android/things/AndroidThings#RELEASE) Android Things release version string.                     |
| ` public static final int`                                                                | [SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#SDK_INT) Android Things SDK version number.                         |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/AndroidThings#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                                                                                                                                                                                                                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                                                                                                                                                                                                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long, int))`(long millis, int nanos) ` Causes the current thread to wait until another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long millis) ` Causes the current thread to wait until either another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object, or a specified amount of time has elapsed.                                                                 | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object.                                                                                                                                  | ||

## Fields

### PREVIEW_SDK_INT

```
int PREVIEW_SDK_INT
```

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](https://developer.android.com/reference/com/google/android/things/AndroidThings#SDK_INT), but these APIs should be considered unstable and may change or disappear in future releases.

<br />

**See also:**

- [SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#SDK_INT)  

### RELEASE

```
String RELEASE
```

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.

<br />

**See also:**

- [SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#SDK_INT)
- [PREVIEW_SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#PREVIEW_SDK_INT)  

### SDK_INT

```
int SDK_INT
```

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.
 }
 
```

<br />

<br />

**See also:**

- [PREVIEW_SDK_INT](https://developer.android.com/reference/com/google/android/things/AndroidThings#PREVIEW_SDK_INT)  
-

  ## Classes

  - [AndroidThings](https://developer.android.com/reference/com/google/android/things/AndroidThings)
  - [AndroidThings.Product](https://developer.android.com/reference/com/google/android/things/AndroidThings.Product)