In eclipse as soon as i type this out:
BaseColumns._ID, + "=?"
I get:
The operator + is undefined for the argument type(s) String
How is that possible, they are both Strings aren’t they?
now here is documentation for BaseColumns._ID:
public static final String _ID
the code I am writing is:
public void deteleProfile(Long id) throws SQLException {
SQLiteDatabase db = helper.getWritableDatabase();
Integer i = db.delete(ProlificDatabase.TABLE, BaseColumns._ID, + "=?", new String[] {id.toString()});
Log.d(TAG, i + " records deleted where id is " + id);
You’ve got a rogue comma:
should probably be
Otherwise it’s trying to use
+ "=?"as a stand-alone argument with the+acting as a unary operator.