/** * LocationLibraryConstants.java * @date Mar 1, 2011 * @author ricky barrette * @author Twenty Codes, LLC */ package com.TwentyCodes.android.debug; import com.TwentyCodes.android.location.BaseLocationReceiver; import android.app.AlarmManager; import android.hardware.SensorManager; import android.location.LocationManager; /** * This class will be used to set the Location Library Constants * @author ricky barrette */ public final class LocationLibraryConstants { static{ SUPPORTS_FROYO = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO; SUPPORTS_GINGERBREAD = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD; } /** * Sets the default SkyHook Registration Behavior used by SkyHookRegistration.getUserName() * @author ricky barrette */ public static final SkyHookRegistrationBehavior DEFAULT_REGISTRATION_BEHAVIOR = SkyHookRegistrationBehavior.NORMAL; /** * Sets the default compass sensor update interval * @author ricky barrette */ public static final int COMPASS_UPDATE_INTERVAL = SensorManager.SENSOR_DELAY_NORMAL; /** * The maximum running time for a single shot location service * @author ricky barrette */ public static final long MAX_LOCATION_SERVICE_RUN_TIME = 60000l; /** * Forces single shot location services to return the first location * @author ricky barrette */ public static final boolean REPORT_FIRST_LOCATION = false; /** * Minimum Required accuracy to report * @author ricky barrette */ public static final int MINIMUM_REQUIRED_ACCURACY = 100; public static final boolean SUPPORTS_FROYO; public static final boolean SUPPORTS_GINGERBREAD; public static final String INTENT_ACTION_UPDATE = "TwentyCodes.intent.action.LocationUpdate"; public static final String INTENT_EXTRA_LOCATION_CHANGED = LocationManager.KEY_LOCATION_CHANGED; /** * Used to tell the service how frequently it needs to run. This is required if you want a multishot service */ public static final String INTENT_EXTRA_PERIOD_BETWEEN_UPDATES = "period_beween_updates"; /** * Used to tell the service how accurate of a location you want reported */ public static final String INTENT_EXTRA_REQUIRED_ACCURACY = "required_accuracy"; /** * used if the INTENT_EXTRA_PERIOD_BETWEEN_UPDATES is present, but contains no data */ public static final long FAIL_SAFE_UPDATE_INVERVAL = AlarmManager.INTERVAL_FIFTEEN_MINUTES; }