I can insert data to my database with this:
mydb.execSQL("INSERT INTO " + TABLE_NAME + " (NAME, CITY) VALUES
('John','Toronto')");
But if I use the parameter as fallow for CITY, my application crashes:
String str2="Toronto";
mydb.execSQL("INSERT INTO " + TABLE_NAME + " (NAME, CITY) VALUES
('John',str2)");
why?