呼叫活动时通知点击事件 [英] call activity when notification click event

查看:105
本文介绍了呼叫活动时通知点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要拨打的活动时,使用者拉下通知,并点击该通知......我该怎么办呢?

i want to call the activity when user pull down the notification and click on that notification...how can i do that?

推荐答案

呼叫 setLatestEventInfo()通知对象,提供一个 PendingIntent ,将开始新的活动,当他们点击在通知抽屉里输入。这里是 证明这是一个示例项目。

Call setLatestEventInfo() on the Notification object, supplying a PendingIntent that will start your activity when they tap on your entry in the notification drawer. Here is a sample project demonstrating this.

这篇关于呼叫活动时通知点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆