public class BreadcrumbReceiver
extends android.content.BroadcastReceiver
implements android.content.SharedPreferences.OnSharedPreferenceChangeListener
BreadcrumbReceiver
Manages "self" breadcrumb and track history.
Track segments are created when ATAK is restarted or user explicitly
initiates a new track segment. Timestamped crumbs are logged for self and
any node for which the user turns on breadcrumbs. IO/Persistence is managed
by CrumbDatabase
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLOR_CRUMB |
static int |
DEFAULT_LINE_COLOR |
static java.lang.String |
DEFAULT_LINE_STYLE |
static java.lang.String |
TOGGLE_BREAD |
static int[] |
TRACK_COLORS |
static java.lang.String |
TRACK_HISTORY_MAPGROUP |
Constructor and Description |
---|
BreadcrumbReceiver(MapView view,
MapGroup trackGroup) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
static int |
getNextColor(android.content.SharedPreferences preferences) |
static java.lang.String |
getTrackTitle(android.content.SharedPreferences prefs) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
static int |
setServerTrack(java.lang.String callsign,
java.lang.String uid,
long startTime,
Track track,
android.content.SharedPreferences prefs) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TRACK_HISTORY_MAPGROUP
public static final java.lang.String TOGGLE_BREAD
public static final java.lang.String COLOR_CRUMB
public static final int DEFAULT_LINE_COLOR
public static final java.lang.String DEFAULT_LINE_STYLE
public static final int[] TRACK_COLORS
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public static java.lang.String getTrackTitle(android.content.SharedPreferences prefs)
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public static int getNextColor(android.content.SharedPreferences preferences)
public static int setServerTrack(java.lang.String callsign, java.lang.String uid, long startTime, Track track, android.content.SharedPreferences prefs)
public void dispose()