Android - how to raise an alert after a long time (a month or more)
-
25-09-2019 - |
문제
What is the best way to set an long-term alert/reminder from an Android application? I'd like to display notification in a few weeks after current date. I believe there is no need to write a service for such task. Will AlarmManager do the trick? Or should application be started daily and performing check?
After countdown was started, upcoming alert should survive upgrading application from Android Market.
해결책
Use AlarmManager. Here is code snippet and link to wider code example by CommonsWare.
제휴하지 않습니다 StackOverflow