| 290 | |
| 291 | == Android-specific RPCs == |
| 292 | |
| 293 | The RPC |
| 294 | {{{ |
| 295 | int report_device_status(DEVICE_STATUS&); |
| 296 | }}} |
| 297 | |
| 298 | is used to convey information from Android GUIs to the BOINC client, including |
| 299 | * whether the device is plugged in via USB or AC power |
| 300 | * the battery charge level, state, and temperature |
| 301 | * whether the device is connected via !WiFi |
| 302 | * whether the user is active (e.g. whether the screen is on) |
| 303 | * the device name (supplied by the user) |
| 304 | |
| 305 | Android GUIs should call this fairly often (every 10 sec at least). |
| 306 | |
| 307 | There is no C++ binding for this RPC; |
| 308 | there's a Java binding in the Android GUI code. |