contentprovider

  • 网络内容提供者
contentprovidercontentprovider
  1. In a separate class , implement ContentProvider , which is an object that provides data to the view using the appropriate interface for your viewer type .

    在另一个独立类中实现ContentProvider,它是一个对象,用适合查看器类型的接口向视图提供数据。

  2. The inputChanged () method accepts a Viewer as an input argument , so multiple views can use a single ContentProvider .

    inputChanged()方法接受Viewer作为输入参数,所以多个视图可以使用一个ContentProvider。

  3. A content provider is implemented as a subclass of ContentProvider and must implement a standard set of APIs that enable other applications to perform transactions .

    一个contentprovider通过继承ContentProvider抽象类并且实现允许其他应用执行事务的一组标准API来实现。

  4. Or , if your application exposes data intended to be used by other applications , you should expose it via a ContentProvider , rather than ( for example ) using a world-readable raw file or database .

    因此,如果你的应用要向其他程序开放数据,应该通过内容提供器进行,而不是使用诸如众所周知的原始文件或数据库。