Browsed by
Category: Xamarin

Mobile development with Xamarin

Setting Alarms on Android

Setting Alarms on Android

Setting alarms on Android is not straightforward. The sticky part is setting the time for an alarm using AlarmManager. Instead of taking a DateTime field, AlarmManager takes a value of type “long” that represents the time, in milliseconds, to trigger the alarm. What’s more there’s two types of times: an elapsed time and a “Real Time Clock (RTC)”. The elapsed time represents the number of milliseconds since boot time. RTC time is the actual time expressed as UTC time. As…

Read More Read More