0
我在我的android代碼中檢測到傳入消息的BroadcastReceiver
。當消息有我的關鍵字時,我想刪除傳入消息的默認通知(由android設備生成)。請告訴我該怎麼做?以編程方式刪除系統通知
我在我的android代碼中檢測到傳入消息的BroadcastReceiver
。當消息有我的關鍵字時,我想刪除傳入消息的默認通知(由android設備生成)。請告訴我該怎麼做?以編程方式刪除系統通知
刪除這個特殊的代碼或程序註釋它:
NotificationManager mNotifyManager =(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context);
產生什麼意思? –
你不能這樣做,因爲這些都不是系統生成的通知,但他們默認短信應用程序在設備 – arjun