Skip to content

Instantly share code, notes, and snippets.

@Axxiss
Created May 4, 2012 09:52
Show Gist options
  • Save Axxiss/2593692 to your computer and use it in GitHub Desktop.
Save Axxiss/2593692 to your computer and use it in GitHub Desktop.
getType
@Override
public String getType(Uri uri) {
switch (uriMatcher.match(uri)) {
case LOG_LIST: return CONTENT_TYPE_LIST;
case LOG_ITEM: return CONTENT_TYPE_ITEM;
default: throw new IllegalArgumentException("Unsupported URI: " + uri);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment