BroadcastReceiver の登録に問題があります。
registerReceiver で登録すると機能します。
registerReceiver(new NotifReceiver(), new IntentFilter(NotifReceiver.POST_NOTIF));
しかし、 AndroidManifest.xml ではそうではありません:
<receiver
android:name=".receiver.NotifReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name=".receiver.NotifReceiver.POST_NOTIF" />
</intent-filter>
</receiver>
NotifReceiver.java :
public class NotifReceiver extends BroadcastReceiver {
public static final String POST_NOTIF = "POST_NOTIF";
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(POST_NOTIF)) {
Log.d("debug", "action received");
}
}
}