package in.co.sdslabs.cognizance;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class AlarmReciever extends BroadcastReceiver {

	NotificationManager nm;
	
	@SuppressWarnings("deprecation")
	@Override
	public void onReceive(Context context, Intent arg1) {
		

		Intent myIntent = new Intent(context, EventActivity.class);
		nm = (NotificationManager) context
				.getSystemService(Context.NOTIFICATION_SERVICE);
		CharSequence from = "Cognizance 2014";
		
		CharSequence message = "Your Today's Tasks are.....";
		PendingIntent contentIntent = PendingIntent.getActivity(context, 0,
				myIntent, 0);
		Notification notif = new Notification(R.drawable.launcher_icon,
				"enter name of event that needs to be notified about", System.currentTimeMillis());
		notif.flags = Notification.FLAG_INSISTENT;
		notif.setLatestEventInfo(context, from, message, contentIntent);
		notif.flags |= Notification.FLAG_AUTO_CANCEL;
		nm.notify(1, notif);
		
	}
};
@@ -239,16 +239,42 @@
 .Intent;
+%0Aimport android.os.Bundle;
 %0A%0Apublic
@@ -446,20 +446,22 @@
 ent 
-arg1
+intent
 ) %7B%0A%09%09%0A%0A
 %09%09In
@@ -456,16 +456,69 @@
 ) %7B%0A%09%09%0A%0A
+%09%09String eventname = intent.getStringExtra(%22event%22);%0A
 %09%09Intent
@@ -571,16 +571,112 @@
 class);%0A
+%09%09Bundle data = new Bundle();%0A%09%09data.putString(%22event%22, eventname);%0A%09%09myIntent.putExtras(data);%0A
 %09%09nm = (
@@ -830,37 +830,17 @@
 e = 
-%22Your Today's Tasks are.....%22
+eventname
 ;%0A%09%09

Add code for recieving data