Java – check the time of the existing pendingintent in the AlarmManager

Can I query Android AlarmManager to see the time of the next alert for a given pendingintent? I know I can use it The cancel (pending intent) function cancels one, and I can use it Set() updates one, but can you "query" one? I use something like this to see if I've arranged one:

PendingIntent sender = PendingIntent.getBroadcast(context,intent,PendingIntent.FLAG_NO_CREATE);

If sender = = null, one has already been scheduled I really want to know "what time?" If possible

I know I can save it in a database or other location when I set it up, but I really want to query the "official source" probably?

Solution

Unfortunately, No‘ AlarmManager 'is a write - only interface

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>