我正在使用Xamarin for android,我想使用RTC_WAKEUP标志来设置闹钟。谁知道如何计算触发时间,单位是毫秒?我可以使用DateTime.ToUniversalTime,但是alarmmanager set方法需要很长的时间(毫秒)。对于运行时间,我可以使用SystemClock.ElapsedRealtime()
但是RTC_WAKEUP的文档说要使用System.currentTimeMillis()。
我也在使用RTC_WAKEUP。但是如果我的设备已经唤醒了呢?不管怎样,onReceive会被调用吗?我希望即使设备处于唤醒状态也要调用onReceiver。下面是我如何启动我的闹钟:IntentPendingIntent pi = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURREN