public class MissionPackageUtils
extends java.lang.Object
Constructor and Description |
---|
MissionPackageUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
abbreviateFilename(java.lang.String filename,
int limit) |
static int |
getColor(CotEvent event)
Get the map item color for this CoT event
|
static java.lang.String |
getDefaultName(android.content.Context context,
java.lang.String deviceCallsign) |
static android.graphics.drawable.Drawable |
getIconDrawable(CotEvent event) |
static java.lang.String |
getIconURI(CotEvent event)
Retrieve icon URI from CoT event
|
static java.lang.String |
getModifiedDate(java.io.File file)
Format modified date for UI
|
static java.lang.String |
getModifiedDate(java.lang.Long time) |
static java.lang.String |
getModifiedDate(java.lang.Long time,
boolean full) |
static int |
getPackageCount() |
static java.util.List<MissionPackageListGroup> |
getUiPackages(MapGroup group) |
static java.lang.String |
getUniqueFilename(java.lang.String path,
java.lang.String name)
Get a unique filename based on whether a given filepath is taken
|
static java.lang.String |
getUniqueName(android.content.Context context,
java.lang.String name) |
public static java.lang.String getDefaultName(android.content.Context context, java.lang.String deviceCallsign)
public static java.lang.String getUniqueFilename(java.lang.String path, java.lang.String name)
path
- File pathname
- package name, not including the .zip extensionpublic static java.lang.String getUniqueName(android.content.Context context, java.lang.String name)
public static java.lang.String getIconURI(CotEvent event)
event
- CoT event to scanpublic static android.graphics.drawable.Drawable getIconDrawable(CotEvent event)
public static int getColor(CotEvent event)
event
- CoT event to scanpublic static java.util.List<MissionPackageListGroup> getUiPackages(MapGroup group)
public static int getPackageCount()
public static java.lang.String abbreviateFilename(java.lang.String filename, int limit)
public static java.lang.String getModifiedDate(java.io.File file)
file
- File objectpublic static java.lang.String getModifiedDate(java.lang.Long time, boolean full)
public static java.lang.String getModifiedDate(java.lang.Long time)