Android Open Source - triptracker Alarm Broadcast






From Project

Back to project page triptracker.

License

The source code is released under:

Copyright (c) 2012 joshua stein <jcs@jcs.org> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redist...

If you think the Android project triptracker 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 org.jcs.triptracker;
//from   w ww .  ja  va  2  s. co m
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class AlarmBroadcast extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
    /* we now have a wake lock until we return */

    if (TrackerService.service != null &&
    TrackerService.service.isRunning())
      TrackerService.service.findAndSendLocation();
  }
}




Java Source Code List

org.jcs.triptracker.AlarmBroadcast.java
org.jcs.triptracker.LogMessage.java
org.jcs.triptracker.MainActivity.java
org.jcs.triptracker.Prefs.java
org.jcs.triptracker.TrackerService.java