Created
May 4, 2012 09:52
-
-
Save Axxiss/2593692 to your computer and use it in GitHub Desktop.
getType
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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