| com.ardic.android.managers.command.ICommandManager |
Provides a set of APIs for executes commands such as reboot, wipe, etc. on the device and returns results or data to the caller.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Reboots the device.
| |||||||||||
Reboots into the recovery mode to wipe the /cache partition.
| |||||||||||
Reboots the device and wipes the user data partition.
| |||||||||||
Shutdowns the device.
| |||||||||||
Starts ringing.
| |||||||||||
Stops ringing.
| |||||||||||
Returns screenshot of screen and returns as
Bitmap | |||||||||||
Wakes the device up immediately.
| |||||||||||
Reboots the device.
| Parameters | |
|---|---|
confirm |
boolean:
If true, shows a reboot confirmation dialog. |
wait |
boolean:
If true, this call waits for the reboot to complete and does not return. |
| Throws | |
|---|---|
AfexException |
|
Reboots into the recovery mode to wipe the /cache partition.
| Throws | |
|---|---|
IOException |
if something goes wrong. |
AfexException |
|
Reboots the device and wipes the user data partition. This is sometimes called a "factory reset", which is something of a misnomer because the system partition is not restored to its factory state.
| Throws | |
|---|---|
IOException |
if writing the recovery command file fails, or if the reboot itself fails. |
AfexException |
|
Shutdowns the device.
| Parameters | |
|---|---|
confirm |
boolean:
If true, shows a reboot confirmation dialog. |
wait |
boolean:
If true, this call waits for the reboot to complete and does not return. |
| Throws | |
|---|---|
AfexException |
|
Starts ringing.
| Parameters | |
|---|---|
volume |
float:
Volume level in [0-7] range |
localUri |
String:
Indicates audio file URI. If it is null, default audio ring plays. |
| Returns | |
|---|---|
boolean |
true if the operation succeeds else false |
| Throws | |
|---|---|
AfexException |
|
Wakes the device up immediately.
| Throws | |
|---|---|
AfexException |
|