Code example for SparseArray

Methods: get

0
	////////////////////////////////////////////////////////////////////////////////////// 
 
	private Class<? extends Model> getModelType(Uri uri) {
		int code = URI_MATCHER.match(uri);
		if (code != UriMatcher.NO_MATCH) {
			return TYPE_CODES.get(code);
		} 
 
		return null; 
	} 
 
	private Uri createUri(Class<? extends Model> type, Long id) {
		return Uri.parse("content://" + mAuthority + "/" + Cache.getTableName(type).toLowerCase() + "/" + id);
	} 
 
	private void notifyChange(Uri uri) {
		getContext().getContentResolver().notifyChange(uri, null);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE