If I am compiling AOSP 4.2.2 from source, what private APIs in NotificationManager can I use to display system notifications?
问问题
285 次
1 回答
2
您可以使用以下 api。
private INotificationManager mNoMan;
mNoMan = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICATION_SERVICE));
StatusBarNotification[] notis = mNoMan.getActiveNotifications(mContext.getPackageName());
您需要此权限
android.permission.ACCESS_NOTIFICATIONS
于 2013-10-16T18:49:40.500 回答