Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent NPE on log line. Use monotonically increasing time for alarm … #14

Merged
merged 1 commit into from
Nov 15, 2020

Conversation

hannesa2
Copy link
Owner

…manager scheduling calculations.

https://developer.android.com/training/scheduling/alarms
"There are two general clock types for alarms: "elapsed real time" and "real time clock" (RTC). Elapsed real time uses the "time since system boot" as a reference, and real time clock uses UTC (wall clock) time. This means that elapsed real time is suited to setting an alarm based on the passage of time (for example, an alarm that fires every 30 seconds) since it isn't affected by time zone/locale. The real time clock type is better suited for alarms that are dependent on current locale."

https://stackoverflow.com/a/15400014

eclipse-paho/paho.mqtt.android#325

@hannesa2 hannesa2 force-pushed the retry-logic branch 2 times, most recently from 9046659 to bd7926c Compare November 15, 2020 07:50
…manager scheduling calculations.

https://developer.android.com/training/scheduling/alarms
"There are two general clock types for alarms: "elapsed real time" and "real time clock" (RTC). Elapsed real time uses the "time since system boot" as a reference, and real time clock uses UTC (wall clock) time. This means that elapsed real time is suited to setting an alarm based on the passage of time (for example, an alarm that fires every 30 seconds) since it isn't affected by time zone/locale. The real time clock type is better suited for alarms that are dependent on current locale."

https://stackoverflow.com/a/15400014
@hannesa2 hannesa2 merged commit bba4c10 into master Nov 15, 2020
@hannesa2 hannesa2 deleted the retry-logic branch November 15, 2020 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants