package com.martinet.emplitude.Todo;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.NotificationCompat;

import com.martinet.emplitude.MyApplication;
import com.martinet.emplitude.R;

/**
 * Created by Flo on 09/03/2016.
 */
public class NotifTache extends BroadcastReceiver {

    private MyApplication monApplication;

    @Override
    public void onReceive(Context context, Intent intent) {
        monApplication = (MyApplication) context.getApplicationContext();
        Tache t = (Tache) monApplication.mesTaches.get(intent.getIntExtra("indexTache", 0));
        NotificationCompat.Builder mBuilder =
                (NotificationCompat.Builder) new NotificationCompat.Builder(context)
                        .setSmallIcon(R.drawable.ic_list)
                        .setContentTitle("Empli'tude")
                        .setContentText(t.getNom()+" dans pas longtemps");

        NotificationManager mNotificationManager =
                (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
        mNotificationManager.notify(10, mBuilder.build());
    }
}

@@ -347,16 +347,75 @@
 16.%0A */%0A
+ %0A /**%0A * Classe qui devrait afficher une notification%0A */%0A
 public c

Update NotifTache.java