16-bit-clock
16-bit-clock copied to clipboard
widget freezes
I've installed the widget from f-droid on an Android 6 (marshmellow API 23). But apparently the widget never updates. The 16 bits only show the same dots as when the widget was first placed on the home screen. Removing the widget from the screen and placing it again still shows the same image. Reinstalling the app results in the same issue.
I've been trying to pin point the problem and so far I've found the following Stack Overflow article that might be interesting: https://stackoverflow.com/questions/37607329/alarmmanager-not-set-or-not-firing-on-marshmallow-after-certain-time
I'm guessing that the issue is with the AlarmManager in the ClockProvider.onEnabled method. Documentation for AlarmManager: https://developer.android.com/reference/android/app/AlarmManager.html It seems that the AlarmManager is no longer meant to be used for timing events of the sort used by 16-bit-clock. Instead the Handler class is recommended for apps in Android APIs greater then or equal to API 19. Handler documentation: https://developer.android.com/reference/android/os/Handler.html