Home > Mobile >  Program there are data, but the use of open sqlite database, but what also have no
Program there are data, but the use of open sqlite database, but what also have no

Time:12-05

ContactProvider query methods:
 @ 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 size

CodePudding user response:

reference 1/f, wang can reply:
how much the db file size

Display only 4 k
  • Related