【发布时间】:2014-10-21 20:14:36
【问题描述】:
我尝试了这个问题的答案代码:How to put media controller button on notification bar?
通过调用
showNotification()
方法我的应用程序被关闭。如何防止这种情况?如果手机api> = 16,我该如何处理这个方法才被调用。因为我认为它是从api 16开始可用的。
我读过,有较低 API 的解决方案:
import android.support.v4.app.NotificationCompat;
但我没有让它工作,所以我只是想阻止调用它。
我可以通过我的应用程序的 onDestroy() 从栏中删除通知吗?
【问题讨论】:
标签: android android-notifications android-notification-bar