Hello developers,
time ago I wrote a small app for a Battery monitor home widget, following some tutorials on this forum and including last updates for Android 8+ here:
Automatic Foreground and it worked fine also with Android 9.
Yesterday my own phone (Xiaomi) received the Android 10 updates and, since then, the widget does not update anymore.
I think it is something related to power management.
Did someone of you managed to solve this problem?
Also I think it is not possible to change power options programmatically, probably the OS doesn't allow to do it.
Is there a way to open the battery options for the app, to ask the user to change the settings manually?
Thanks in advance!
Davide
time ago I wrote a small app for a Battery monitor home widget, following some tutorials on this forum and including last updates for Android 8+ here:
Automatic Foreground and it worked fine also with Android 9.
Yesterday my own phone (Xiaomi) received the Android 10 updates and, since then, the widget does not update anymore.
I think it is something related to power management.
Did someone of you managed to solve this problem?
Also I think it is not possible to change power options programmatically, probably the OS doesn't allow to do it.
Is there a way to open the battery options for the app, to ask the user to change the settings manually?
Thanks in advance!
Davide