これは、ボタンをクリックすると呼び出される私のメソッドです。
public void onDisplayNotification(View v)
{
Intent i = new Intent(this, Notification_Activity.class);
i.putExtra("Code", "Notification Dismissed");
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, i, 0);
NotificationCompat.Builder nb = new NotificationCompat.Builder(this);
nb.setContentTitle("Meeting").setContentText("In 5 minutes").setContentIntent(pendingIntent);
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Log.d("my","Hello");
nm.notify(0, nb.build());
}
ボタンをクリックしても何も表示されません。ログの猫を確認したところ、メソッドが実行されています。