package com.trigg.alarmclock;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class AlarmService extends Service {

	public static String TAG = AlarmService.class.getSimpleName();
	
	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		
		Intent alarmIntent = new Intent(getBaseContext(), AlarmScreen.class);
		alarmIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		alarmIntent.putExtras(intent);
		getApplication().startActivity(alarmIntent);
		
		AlarmManagerHelper.setAlarms(this);
		
		return super.onStartCommand(intent, flags, startId);
	}
	
}
@@ -375,16 +375,36 @@
 d) %7B%0A%09%09%0A
+%09%09if(intent!=null)%7B%0A
 %09%09Intent
@@ -645,16 +645,17 @@
 his);%0A%09%09
+%7D
 %0A%09%09retur
@@ -708,8 +708,9 @@
 ;%0A%09%7D%0A%09%0A%7D
+%0A

Update AlarmService.java