Generating Alarm with notification issue in android
Here is my code.
From where i am not able to generate alarm programmatically..
 
    	Calendar cal = Calendar.getInstance();
		int id = (int) cal.getTimeInMillis();
		Intent myIntent = new Intent(this,MyScheduledReceiver.class);
		myIntent.putExtra("taskTitle", taskTitle.getText().toString());
		myIntent.putExtra("taskDetails", taskDetails.getText().toString());
		 
		 cal.setTimeInMillis(System.currentTimeMillis());
		 cal.set(year, mon, day,tp.getCurrentHour(),tp.getCurrentMinute());
		PendingIntent sender = PendingIntent.getBroadcast(getApplicationContext(), id,
				myIntent,PendingIntent.FLAG_UPDATE_CURRENT|  Intent.FILL_IN_DATA);
				AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
				am.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);

I declared in the manifest file

	

    <receiver android:name=".MyScheduledReceiver"></receiver>


An in the broadcast reciever.

    	NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
	NotificationManager manger = (NotificationManager)     
	context.getSystemService(Context.NOTIFICATION_SERVICE);
	Notification notification = new Notification(R.drawable.ic_launcher, "Combi Note",
	 System.currentTimeMillis());
	PendingIntent contentIntent = PendingIntent.getActivity(context, 
	NOTIFICATION_ID, 
	new Intent(context, MyScheduledReceiver.class), 0);
			Bundle extras=intent.getExtras();
			String title=extras.getString("taskTitle");
		String note=extras.getString("taskDetails");
			notification.setLatestEventInfo(context, note, title, contentIntent);
			notification.flags = Notification.FLAG_INSISTENT;
			notification.defaults |= Notification.DEFAULT_SOUND;
		manger.notify(NOTIFICATION_ID++, notification);




Generating Alarm with notification issue in android
===

Here is my code.
From where i am not able to generate alarm programmatically..
 
    	Calendar cal = Calendar.getInstance();
		int id = (int) cal.getTimeInMillis();
		Intent myIntent = new Intent(this,MyScheduledReceiver.class);
		myIntent.putExtra("taskTitle", taskTitle.getText().toString());
		myIntent.putExtra("taskDetails", taskDetails.getText().toString());
		 
		 cal.setTimeInMillis(System.currentTimeMillis());
		 cal.set(year, mon, day,tp.getCurrentHour(),tp.getCurrentMinute());
		PendingIntent sender = PendingIntent.getBroadcast(getApplicationContext(), id,
				myIntent,PendingIntent.FLAG_UPDATE_CURRENT|  Intent.FILL_IN_DATA);
				AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
				am.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);

I declared in the manifest file

	

    <receiver android:name=".MyScheduledReceiver"></receiver>


An in the broadcast reciever.

    	NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
	NotificationManager manger = (NotificationManager)     
	context.getSystemService(Context.NOTIFICATION_SERVICE);
	Notification notification = new Notification(R.drawable.ic_launcher, "Combi Note",
	 System.currentTimeMillis());
	PendingIntent contentIntent = PendingIntent.getActivity(context, 
	NOTIFICATION_ID, 
	new Intent(context, MyScheduledReceiver.class), 0);
			Bundle extras=intent.getExtras();
			String title=extras.getString("taskTitle");
		String note=extras.getString("taskDetails");
			notification.setLatestEventInfo(context, note, title, contentIntent);
			notification.flags = Notification.FLAG_INSISTENT;
			notification.defaults |= Notification.DEFAULT_SOUND;
		manger.notify(NOTIFICATION_ID++, notification);



