【问题标题】:Show Applicaiton in Ongoind mode in Statusbar android在状态栏android中以正在进行模式显示应用程序
【发布时间】:2014-01-24 11:24:59
【问题描述】:

你好朋友,我想在我们的移动通知详细信息中显示我的应用程序,如下图所示

知道如何实现吗?

我的自定义对话框

【问题讨论】:

    标签: android statusbar android-notifications android-notification-bar


    【解决方案1】:

    为您的通知分配 Notification.FLAG_ONGOING_EVENT 标志。

    示例代码:

    yourNotification.flags = Notification.FLAG_ONGOING_EVENT;
    // Notify...
    

    如果您不熟悉通知 API,请阅读 Android 开发者网站上的创建状态栏通知。

    来源: Android: How to create an "Ongoing" notification?

    【讨论】:

    • 感谢发布它正在工作,但我可以在“+”号中获得点击事件,因为我想打开我在问题中显示的自定义对话框
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-29
    • 1970-01-01
    相关资源
    最近更新 更多