Батарея Android в SDK

Действительно ли возможно, что serverSocket закрывается от другого потока? Это вызовет это исключение.

27
задан jimmym715 8 June 2012 в 12:29
поделиться

1 ответ

You can register an Intent receiver to receive the broadcast for ACTION_BATTERY_CHANGED: http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED. The docs say that the broadcast is sticky, so you'll be able to grab it even after the moment the battery state change occurs.

23
ответ дан 28 November 2019 в 04:11
поделиться
Другие вопросы по тегам:

Похожие вопросы: