Big Chungus
Member
Not that I would be of any help but what exactly is the problem?
Trying to get a notification to appear once it hits a certain time, but nothing appears.
		Code:
	
		public void setAlarm()
	{
		AlarmManager mgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
		
		Intent i = new Intent(MainActivity.this,MyAlarmReceiver.class);
		PendingIntent pendingIntent = PendingIntent.getBroadcast(MainActivity.this,0,i,PendingIntent.FLAG_ONE_SHOT);
		
		Calendar alarmTime = Calendar.getInstance();
		alarmTime.set(Calendar.HOUR_OF_DAY,8);
		alarmTime.set(Calendar.MINUTE,00);
		
		mgr.set(AlarmManager.RTC_WAKEUP,alarmTime.getTimeInMillis(),pendingIntent);
		
	}
	setAlarm gets called when the program starts, and the intent calls MyAlarmReceiver, which just shows a notification on the screen.