开发者

Auto Notification for Android

开发者 https://www.devze.com 2023-03-11 14:56 出处:网络
I\'m new with Android programming. I\'m just wondering whether its possible to set up 开发者_StackOverflowauto notification. For example, every morning at 8am, the app will send a notification to user

I'm new with Android programming. I'm just wondering whether its possible to set up 开发者_StackOverflowauto notification. For example, every morning at 8am, the app will send a notification to user about something. Is this possible? Which area/class of Android programming should I look at? Thanks!


You should have a look at the Alarm Manager. You will need to use either of the 'set' methods, and give it a PendingIntent that will perform a broadcast or start an intent service that wakes up just to show the notification. For the broadcast, you will need to have a receiver in your app, that makes a Notification and shows it.

0

精彩评论

暂无评论...
验证码 换一张
取 消