UriMatcher的用法
来源:互联网 发布:linux安全认证 编辑:程序博客网 时间:2024/06/07 04:58
private static final String AUTHORITY = "com.example.cmomp"; private static final int PEOPLE = 1; private static final int PEOPLE_ID = 2;
public String m(){UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);matcher.addURI("com.example.cmomp", "people", PEOPLE);matcher.addURI("com.example.cmomp", "person/#", PEOPLE_ID);Uri uri = Uri.parse("content://" + "com.example.cmomp" + "/people");int match = matcher.match(uri);switch (match) {case PEOPLE:return "vnd.android.cursor.dir/people";case PEOPLE_ID:return "vnd.android.cursor.item/people";default:return null;}}
- UriMatcher的用法
- UriMatcher用法
- Content Provider 中 UriMatcher的用法
- UriMatcher类的简介
- UriMatcher
- android的uri以及UriMatcher讲解
- UriMatcher使用原理的源码分析
- 我的android 第23天 - UriMatcher类使用介绍
- UriMatcher理解
- 传智播客--ContentProvider共享数据和ContentResolver的使用,Uri,UriMatcher和ContentUris
- ContentProvider共享数据和ContentResolver的使用,Uri,UriMatcher和ContentUris
- 传智播客--ContentProvider共享数据和ContentResolver的使用,Uri,UriMatcher和ContentUris
- Android -UriMatcher,ContentUris
- Uri、UriMatcher、ContentUris详解
- Uri、UriMatcher、ContentUris详解
- UriMatcher类使用介绍
- UriMatcher类使用介绍
- Uri、UriMatcher、ContentUris详解
- 在C#的winForm程序中调用和执行javascript
- 最长子序列和问题
- 数据库连接池
- mac osx上安装putty
- Android Activity sleep 自线程更新主线程UI
- UriMatcher的用法
- 特殊数据类型成员变量的初始化
- 庖丁解牛TLD(一)——开篇 .
- Error -27796: Failed to connect to server
- 解决load,get,save 等is not valid without active transaction异常的原因。
- 如何在c#中获取当前插入的自增ID号?
- S5PV210 Android Overlay系统(视频输出系统)分析
- 迷宫程序(3)
- 庖丁解牛TLD(二)——初始化工作(为算法的准备) .