Skip to content

Instantly share code, notes, and snippets.

@neosinan
Created November 9, 2017 17:13
Show Gist options
  • Save neosinan/47da504f3b9f56c32cc72f7c108b3423 to your computer and use it in GitHub Desktop.
Save neosinan/47da504f3b9f56c32cc72f7c108b3423 to your computer and use it in GitHub Desktop.
public static final Uri EC = EXTERNAL_CONTENT_URI; //Added as Media image public static final Uri IC = INTERNAL_CONTENT_URI;
public static final String FILES = "image";
public static final String PROVIDER_AUTHORITY = "com.neosinan.cspr.simplecamera";
public static final Uri CONTENT_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/");
public static final Uri FILES_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/" + FILES + "/");
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/image" + PROVIDER_AUTHORITY + "." + FILES;
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.dir/image" + PROVIDER_AUTHORITY + "." + FILES;
static final int FILE_ROOT = 1;
static final int FILE_ID = 2;
public static final String CONTENT_TYP = "vnd.android.cursor.dir/image";
private static final HashMap<String, String> MIME_TYPES = new HashMap<String, String>();
static {
MIME_TYPES.put(".jpg", "image/jpeg");
MIME_TYPES.put(".jpeg", "image/jpeg");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment