关于Android URI 的一点困惑与解答

来源:互联网 发布:linux tomcat 输出日志 编辑:程序博客网 时间:2024/05/22 06:55

http://apps.hi.baidu.com/share/detail/15911137

http://www.360doc.com/content/10/0205/01/155970_15165365.shtml

 

<provider android:name="NotePadProvider"

            android:authorities="com.google.provider.NotePad"

        />

 

public final Cursor managedQuery (Uri uri, String[] projection, String selection, String[] selectionArgs,String sortOrder)

Since: API Level 1

Wrapper around query(android.net.Uri, String[], String, String[], String) that gives the resulting Cursor to callstartManagingCursor(Cursor) so that the activity will manage its lifecycle for you.

Parameters
uriThe URI of the content provider to query.projectionList of columns to return.selectionSQL WHERE clause.selectionArgsThe arguments to selection, if any ?s are pesentsortOrderSQL ORDER BY clause.
Returns
  • The Cursor that was returned by query().
See Also
  • query(android.net.Uri, String[], String, String[], String)
  • startManagingCursor(Cursor)

原创粉丝点击