Android Open Source - MapAlarmist Geo Alarm Utils






From Project

Back to project page MapAlarmist.

License

The source code is released under:

Copyright 2013 Guilhem Vellut <guilhem@vellut.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...

If you think the Android project MapAlarmist 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.vellut.geoalarm;
/*  w  ww.j  a va 2  s .c  o  m*/
import android.content.Context;

import com.google.analytics.tracking.android.EasyTracker;
import com.google.analytics.tracking.android.MapBuilder;

public class GeoAlarmUtils {
  public static final String APPTAG = "GeoAlarm";
  
  public static final String GEOFENCE_REQUEST_ID = "GeoAlarm";
  
  public static final String ACTION_STOP_ALARM = "StopAlarm";
  
  public static final int GEOFENCE_NOTIFICATION_ID = 1;
  
  public static final String EXTRA_USE_VIBRATE = "UseVibrate";
  public static final String EXTRA_RINGTONE_URI = "RingtoneUri";
  public static final String EXTRA_ALARM_SET_TIME = "AlarmSetTime";
  
  public static final long MIN_DTIME = 10000;
  
  public final static int RINGTONE_PICKER_REQUEST_CODE = 1;
  public final static int CONNECTION_FAILURE_RESOLUTION_REQUEST = 2;
  
  public final static String PREF_IS_FIRST_TIME_RUN = "isFirstTimeRun";
  public final static String PREF_RINGTONE_URI = "ringtoneUri";
  public final static String PREF_NORTH_LAT = "northLat";
  public final static String PREF_WEST_LON = "westLon";
  public final static String PREF_SOUTH_LAT = "southLat";
  public final static String PREF_EAST_LON = "eastLon";
  public final static String PREF_USE_VIBRATE = "useVibrate";
  public final static String PREF_IS_ALARM_ON = "isAlarmOn";
  public final static String PREF_SAVED_LOCATIONS = "savedLocations";
  public final static String PREF_LOCATION_TECHNIQUE = "locationTechnique";
  public final static String PREF_IS_IN_ZONE = "isInZone";
  public final static String PREF_ALARM_SET_TIME = "alarmSetTime";
  
  public final static int LOCATION_TECHNIQUE_LOW_POWER = R.string.lowpower;
  public final static int LOCATION_TECHNIQUE_BALANCED_POWER = R.string.balancedpowacc;
  public final static int LOCATION_TECHNIQUE_HIGH_ACCURACY = R.string.highaccuracy;  
  

  // Analytics

  public static void trackEvent(Context context, String category, String action, String label,
      Long value) {
    EasyTracker easyTracker = EasyTracker.getInstance(context);
    easyTracker.send(MapBuilder.createEvent(category, action, label, value)
        .build());
  }
}




Java Source Code List

com.vellut.geoalarm.AlarmWakeUpBroadcastReceiver.java
com.vellut.geoalarm.AlarmWakeUpService.java
com.vellut.geoalarm.GeoAlarmBootServiceStarter.java
com.vellut.geoalarm.GeoAlarmBootService.java
com.vellut.geoalarm.GeoAlarmUtils.java
com.vellut.geoalarm.GeoAlarm.java
com.vellut.geoalarm.MainActivity.java
com.vellut.geoalarm.ReceiveTransitionsBroadcastReceiver.java
com.vellut.geoalarm.ReceiveTransitionsIntentService.java
com.vellut.geoalarm.SavedLocation.java
com.vellut.geoalarm.SettingsActivity.java
com.vellut.geoalarm.SwipeDismissListViewTouchListener.java
com.vellut.geoalarm.io.LatLngBoundsDeserializer.java
com.vellut.geoalarm.io.LatLngBoundsSerializer.java