我没有getManeger方法是为啥呢
// 加上这个方法 private NotificationManager getManager(){ if (manager == null){ manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); } return manager; }
自己写的,
NotificationManager manager; manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);