package ph.sakay.gateway;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.SystemClock;
import android.util.Log;

public class Scheduler extends BroadcastReceiver {

	public void onReceive(Context context, Intent intent) {
		AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
		PendingIntent pi = PendingIntent.getService(context, 1, new Intent(context, PollingService.class), 0);
		am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime()+60000, 60000, pi);
	}

}

@@ -358,16 +358,83 @@
 tent) %7B%0A
+%09%09Log.d(%22Scheduler%22, %22Scheduling polling service every 1 minute%22);%0A
 %09%09AlarmM

Add logging for scheduler