how to fire notification from BroadcastReceiver?
问题 how to fire notification from BroadcastReceiver (can't use most methods and can't use "this")? I need it to open a activity with info from the DB I already did it but now must of the methods dosen't work and I cant use "this" 回答1: In the onReceive method you get a Context object. So use it to get the NotificationManager and fire your notification. public void onReceive(Context ctx, Intent intent) { NotificationManager nm = (NotificationManager)ctx.getSystemService(Context.NOTIFICATION_SERVICE