android - get time of the next alarm

前端 未结 3 1804
野性不改
野性不改 2020-12-28 20:46

Is there a way in Android to get the upcoming alarm time?

Thanks

Clarification: I am talking about the native android Alarm Clock appliction

3条回答
  •  粉色の甜心
    2020-12-28 20:48

    Needs to be:

    String nextAlarm = android.provider.Settings.System.getString(getContentResolver(), android.provider.Settings.System.NEXT_ALARM_FORMATTED);
    

提交回复
热议问题