解决方法
if (Context.NOTIFICATION_SERVICE!=null) { String ns = Context.NOTIFICATION_SERVICE; notificationmanager nMgr = (notificationmanager) getApplicationContext().getSystemService(ns); nMgr.cancel(0); }
if (Context.NOTIFICATION_SERVICE!=null) { String ns = Context.NOTIFICATION_SERVICE; notificationmanager nMgr = (notificationmanager) getApplicationContext().getSystemService(ns); nMgr.cancel(0); }