Android Open Source - GeoAlarms Geo Alarms






From Project

Back to project page GeoAlarms.

License

The source code is released under:

GNU General Public License

If you think the Android project GeoAlarms 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 com.geoalarms;
/*from w  ww  . j ava  2 s . com*/
import android.app.Application;
import android.content.Context;

import com.geoalarms.database.AlarmManager;
import com.geoalarms.location.LocListener;

public class GeoAlarms extends Application {

    // global objects
    public static Context context;
    public static AlarmManager alarmManager;
    public static LocListener locationListener;

    // activity IDs
  public static final int MAP_ACTIVITY = 1;
  public static final int ALARM_LIST_ACTIVITY = 2;
  public static final int PREFERENCES_ACTIVITY = 3;
  public static final int HELP_ACTIVITY = 4;
  public static final int NEW_ALARM_ACTIVITY = 5;

  // intent return codes
  public static final int UPDATEALARM = 0;
  public static final int NEWALARM = 1;
  public static final int REMOVEALARM = 2;
  
  // notify token
  public static final String PROX_ALERT_INTENT = "com.geoalarms.Alert";
  
    @Override
    public void onCreate(){
        super.onCreate();
        GeoAlarms.context = this.getApplicationContext();
        GeoAlarms.alarmManager = new AlarmManager();
        GeoAlarms.locationListener = new LocListener();
    }
}




Java Source Code List

com.geoalarms.GeoAlarms.java
com.geoalarms.activity.AlarmEditor.java
com.geoalarms.activity.AlarmList.java
com.geoalarms.activity.Help.java
com.geoalarms.activity.Home.java
com.geoalarms.activity.Map.java
com.geoalarms.activity.Preferences.java
com.geoalarms.database.AlarmDatabaseHelper.java
com.geoalarms.database.AlarmManager.java
com.geoalarms.location.LocListener.java
com.geoalarms.location.ProximityIntentReceiver.java
com.geoalarms.map.AlarmOverlay.java
com.geoalarms.map.PointOverlay.java
com.geoalarms.model.Alarm.java
com.geoalarms.model.Coordinates.java