Android Open Source - Geoclock Alarm Manager Receiver






From Project

Back to project page Geoclock.

License

The source code is released under:

GNU General Public License

If you think the Android project Geoclock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package maurizi.geoclock;
/*  w w w.ja  va2s .  c  o m*/
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class AlarmManagerReceiver extends AbstractGeoAlarmReceiver {

  @Override
  public void onConnected(Bundle bundle) {
    // TODO: Add this to the AndroidManifest.xml
    // TODO: Remove notification for this alarm.
    //       If repeating alarm, reset alarm (basically identical to geofenceReceiver).
    //       If not, delete it.
    // TODO: Call Alarm Clock Intent and have it go off immediately (or in 1-5 seconds?)
  }

  public static PendingIntent getPendingIntent(Context context) {
    Intent intent = new Intent(context, AlarmManagerReceiver.class);
    return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
  }
}




Java Source Code List

maurizi.geoclock.AbstractGeoAlarmReceiver.java
maurizi.geoclock.AlarmManagerReceiver.java
maurizi.geoclock.BootReceiver.java
maurizi.geoclock.GeoAlarmFragment.java
maurizi.geoclock.GeoAlarm.java
maurizi.geoclock.GeofenceReceiver.java
maurizi.geoclock.LockableScrollView.java
maurizi.geoclock.MapActivity.java
maurizi.geoclock.NavigationDrawerFragment.java
maurizi.geoclock.ToastLocationClientHandler.java