题目内容

【多选题】以下哪个正确的将Uri注册到UriMatcher中( )

A. matcher.addURI(“edu.wfu.contentprovider", “bookInfo", 0);
B. matcher.addURI(“edu.wfu.contentprovider", “bookInfo/
C. ", 1);
D. matcher.register(“edu.wfu.contentprovider", “bookInfo", 0);
E. matcher.register(“edu.wfu.contentprovider", “bookInfo/*", 1);

查看答案
更多问题

【多选题】Uri为内容提供者中的数据建立了唯一标识符。它主要由以下哪几部分组成?( )

A. scheme
B. authorities
C. path
D. table

【多选题】内容提供者创建完成后,Android Studio会自动在AndroidManifest.xml中对内容提供者进行注册。以下哪些是其属性标签。( )

A. name
B. authorities
C. enabled
D. exported

【多选题】要把自己的数据提供外部App访问,首先需要创建自己的provider,提供相应的操作方法有( )

A. Delete
B. Update
C. Query
D. getType

【填空题】ContentProvider 使用基于____模型的简单表格来提供需要共享的数据

答案查题题库