PackageManager pm = getPackageManager();
ai = pm.getApplicationInfo("com.example.notifysort", PackageManager.GET_ACTIVITIES);
INotificationManager sINM = INotificationManager.Stub.asInterface(
ServiceManager.getService(this.NOTIFICATION_SERVICE));
sINM.setShowBadge("com.example.notifysort", ai.uid, false);
网友评论