# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# DevicePolicyManager.InstallSystemUpdateCallback

`public static abstract class DevicePolicyManager.InstallSystemUpdateCallback`
`extends Object` ``

java.lang.Object
↳ | android.app.admin.DevicePolicyManager.InstallSystemUpdateCallback

Callback used in `DevicePolicyManager.installSystemUpdate(ComponentName, Uri, Executor, DevicePolicyManager.InstallSystemUpdateCallback)` to indicate that there was an error while trying to install an update.

## Summary

### Constants
`int` | `UPDATE_ERROR_BATTERY_LOW` Represents the battery being too low to apply an update.
`int` | `UPDATE_ERROR_FILE_NOT_FOUND` Represents that the file could not be found.
`int` | `UPDATE_ERROR_INCORRECT_OS_VERSION` Represents the update file being intended for different OS version.
`int` | `UPDATE_ERROR_UNKNOWN` Represents an unknown error while trying to install an update.
`int` | `UPDATE_ERROR_UPDATE_FILE_INVALID` Represents the update file being wrong; e.g. payloads are mismatched, or the wrong compression method is used.

### Public constructors
`InstallSystemUpdateCallback()`

### Public methods
`void` | `onInstallUpdateError(int errorCode, String errorMessage)` Method invoked when there was an error while installing an update.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `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(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### UPDATE_ERROR_BATTERY_LOW

    public static final int UPDATE_ERROR_BATTERY_LOW

Represents the battery being too low to apply an update.

Constant Value: 5 (0x00000005)

### UPDATE_ERROR_FILE_NOT_FOUND

    public static final int UPDATE_ERROR_FILE_NOT_FOUND

Represents that the file could not be found.

Constant Value: 4 (0x00000004)

### UPDATE_ERROR_INCORRECT_OS_VERSION

    public static final int UPDATE_ERROR_INCORRECT_OS_VERSION

Represents the update file being intended for different OS version.

Constant Value: 2 (0x00000002)

### UPDATE_ERROR_UNKNOWN

    public static final int UPDATE_ERROR_UNKNOWN

Represents an unknown error while trying to install an update.

Constant Value: 1 (0x00000001)

### UPDATE_ERROR_UPDATE_FILE_INVALID

    public static final int UPDATE_ERROR_UPDATE_FILE_INVALID

Represents the update file being wrong; e.g. payloads are mismatched, or the wrong compression method is used.

Constant Value: 3 (0x00000003)

## Public constructors

### InstallSystemUpdateCallback

    public InstallSystemUpdateCallback ()

## Public methods

### onInstallUpdateError

    public void onInstallUpdateError (int errorCode,
                    String errorMessage)

Method invoked when there was an error while installing an update.

The given error message is not intended to be user-facing. It is intended to be reported back to the IT admin to be read.

Parameters
`errorCode` | `int`: Value is `UPDATE_ERROR_UNKNOWN`, `UPDATE_ERROR_INCORRECT_OS_VERSION`, `UPDATE_ERROR_UPDATE_FILE_INVALID`, `UPDATE_ERROR_FILE_NOT_FOUND`, or `UPDATE_ERROR_BATTERY_LOW`
`errorMessage` | `String`: This value cannot be `null`.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*