Friends, I am facing a problem in inserting sqlite database table, 08-06 00:59:44.644: VERBOSE/Error(2407): Detail java.lang.IllegalArgumentException: Unknown URI content://com.fsp.jackrobie/jack_robie
Here my code for insert
public Uri insert(Uri uri, ContentValues values) { Uri newUri = null; try{ SQLiteDatabase db = news.getWritableDatabase(); Log.v("Insert","Start"); // Validate the requested uri if (uriMatcher.match(uri) != JACKROBIE) { throw new IllegalArgumentException("Unknown URI " + uri); }
// Insert into database
long id = db.insertOrThrow(TABLE_NAME, null, values);
Log.v("Insert1",Long.toString(id));
// Notify any watchers of the change
newUri = ContentUris.withAppendedId(CONTENT_URI, id);
getContext().getContentResolver().notifyChange(newUri, null);
return newUri;
}catch(Exception e) { Log.v("Error", "Detail "+e); } return newUri; }
what the reason for getting this and how can i solve it.
Thanks in advance.