Code example for SQLException

0
		if (rowID > 0){
			Uri _uri = ContentUris.withAppendedId(CONTENT_URI, rowID);
			getContext().getContentResolver().notifyChange(_uri, null);    
			return _uri;                
		} 
		throw new SQLException("Failed to insert row into " + uri);
	} 
 
	@Override 
	public boolean onCreate() { 
		dbHelper = new DatabaseHelper(getContext());
        db = dbHelper.getWritableDatabase();
        return (db == null)? false:true;
	} 
 
	@Override 
	public Cursor query(Uri uri, String[] projection, String selection,
			String[] selectionArgs, String sortOrder) {
		SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder();
		sqlBuilder.setTables(TB_NAME);
Contextual code suggestions in your IDE  Get Codota for Java