How to Create a Reminder Notification

后端 未结 2 1100
渐次进展
渐次进展 2020-12-23 10:52

I have referred many sites but still I am not able to create the notification(reminder or alarm) I don\'t know exactly how to create and work with it. Its to notify/remind u

2条回答
  •  旧巷少年郎
    2020-12-23 11:01

    here is a little YouTube Video Tutorial about daily notifications. You can find the source code in the description.

    This video is not made by myself. But I think its a quick help. Although i recommend some changes because the Notification.Builder is deprecated:

    1.

    import android.support.v4.app.NotificationCompat;
    

    2.

    // Change: Notification mNotify = new Notification.Builder(this) to
    Notification mNotify = new NotificationCompat.Builder(this)
    

    Have Fun!

提交回复
热议问题