doze

setAlarmClock() fires too late in doze mode

巧了我就是萌 提交于 2020-04-10 18:46:53
问题 I have soooo much trouble getting my radio alarm clock working as intended and I have read a lot of threads here about that topic, but unfortunatley none did help me. AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Intent intent = new Intent(this, AlarmReceiver.class); PendingIntent penInt = PendingIntent.getBroadcast(this, intentId, intent, 0); This method of distinction between the API levels I found here on stackoverflow and put it inside my calcNextAlarm() function (plus

Dealing with Android-Doze mode on my BLE monitoring app while user's sleeping

爱⌒轻易说出口 提交于 2019-12-24 01:54:11
问题 I made the device which monitors person's health in sleep time and it connects to a smartphone via BLE. It's working great with the iOS app. But since Doze mode came on Android world. It's really hard to deal with it because my device is working in his sleep time. The main feature is that it detects particular danger and notify to the user while he is sleeping with the device. I need a network connection when it occurs. Many articles tell me that I can use a network even in the doze mode if

Doze mode Vs Network Status

守給你的承諾、 提交于 2019-12-12 16:27:36
问题 I am developing app to check WiFi status ,If no WiFi connectivity app has to show disconnect symbol.From Marshmallow on wards,If device enters in to "Doze mode",My device network enters in to suspended mode .If I wake my device up by pressing power button,Will WiFi automatically become Active state? 回答1: Network will be always active, its just the access to it by apps gets suspended. System decides when to allow it. Based on the documentation: As soon as the user wakes the device by moving it

Android doze mode and foreground service

蹲街弑〆低调 提交于 2019-12-02 20:36:58
问题 I read many questions here about doze mode like Android doze mode, Android N Doze mode - how to keep background download and processing?, Wakelock and doze mode and many others. But in many replies, opinions is different. I can't test it by myself (emulator does not support my processor, and my only test device is android 5.1). I would like to know the next situation. I have an activity, which controls the media player. On devices with android 6.0 and higher it wouldn't work as expected cause

Android doze mode and foreground service

蹲街弑〆低调 提交于 2019-12-02 07:34:25
I read many questions here about doze mode like Android doze mode , Android N Doze mode - how to keep background download and processing? , Wakelock and doze mode and many others. But in many replies, opinions is different. I can't test it by myself (emulator does not support my processor, and my only test device is android 5.1). I would like to know the next situation. I have an activity, which controls the media player. On devices with android 6.0 and higher it wouldn't work as expected cause of doze mode. As many solutions says to prevent doze mode it should start a service in separate