Back to project page GeoAlarms.
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.
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(); } }