@ Nullable
@ Override
Public Cursor query (@ NonNull Uri Uri, @ Nullable String [] the columns, @ Nullable String selection, @ Nullable String [] selectionArgs, @ Nullable String sortOrder) {
Int match=uriMatcher. Match (uri);
Cursor Cursor=null;
The switch (match) {
Case CONTACT:
SQLiteDatabase db=openHelper. GetReadableDatabase ();
Cursor=db. Query (ContactOpenHelper T_CONTACT, columns, selection, selectionArgs, null, null, sortOrder);
The I (" ContactProvider ", "ContactProvider querry success!!!! ");
break;
Default:
break;
}
Return the cursor;
}
Insert () :

In the logcat output is as follows:

Then data/data/corresponding package directory/databases/contact db export, use sqlite expert to open is not what data is this why?

CodePudding user response:
How much the db file sizeCodePudding user response: