I need to store a record using rawQuery() method, because I want to insert the current date and time (datetime()), but I also need to insert string
rawQuery()
datetime()
String sql="INSERT INTO sms VALUES ( null, '"+str1+"', '"+str2+"', '"+str3+"', datetime())"; dbw.rawQuery(sql, null);
Mark the single quotes.