ユーザーが通知をクリックした後、通知を閉じてほしい。誰もがフラグを使用するように言っているのを見ましたが、NotificationクラスではなくNotificationCompat.Builderクラスを使用しているため、どこにもフラグを見つけることができません。誰かが自分で通知を削除する方法を知っていますか?
通知を設定するときのコードは次のとおりです。
NotificationCompat.Builder mBuilder =
            new NotificationCompat.Builder(this)
            .setSmallIcon(R.drawable.ic_launcher)
            .setContentTitle("New Question")
            .setContentText("" + QuestionData.getAuthor().getUserName() + ": " + QuestionData.getQuestion() + "");
    Intent openHomePageActivity = new Intent("com.example.ihelp.HOMEPAGEACTIVITY");
    TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
    stackBuilder.addNextIntent(openHomePageActivity);
    PendingIntent resultPendingIntent =
            stackBuilder.getPendingIntent(
                0,
                PendingIntent.FLAG_UPDATE_CURRENT
            );
    mBuilder.setContentIntent(resultPendingIntent);
    NotificationManager mNotificationManager =
        (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);       
    mNotificationManager.notify(0, mBuilder.build());