在ContentProvider中ContentUris的作用是干什么( )。
A. 用于获取Uri路径后面的ID部分
B. 增删改查的方法都在这个类中
C. 用于添加URI的类
D. 根本就用不到这个类,没关系
查看答案
在Android中的Activity种通过下面哪个方法来得到ContentResolver的实例对象。(
A. new ContentResolver
B. getContentResolver()
C. newInstance()
D. ContentUris.newInstance()
ContentProvider中的( )方法根据传入的Uri查询指定条件下的数据。
A. delete
B. insert
C. query
D. update
当观察到的Uri代表的数据发生变化时,会触发ContentObserver中的( )方法。
A. onCreate()
B. notifyChange()
C. onChange()
D. 以上说法都不对
在下列选项中,联系人信息内容提供者的主机名是( )
A. contact
B. com.android.contacts
C. com.android.provider.contact
D. com.android.provider.contacts