android custom contentprovider
问题 I wrote custom contentprovider that creates a database in sqlite3 with single table 'user_authentication'. While the db and table have been created on their respective onCreate() methods, I am getting an NullPointerException in the overriden insert method . Below is the method: public Uri insert(Uri uri, ContentValues initialvalues){ SQLiteDatabase sqlitedb = dbHelper.getWritableDatabase(); if(sUriMatcher.match(uri)!= TABLE){ throw new IllegalArgumentException("Unkown Uri"+uri); }