i am using the below code to insert row to my db. every thing is fine but this method does not save row to the db.
what is wrong with this code :
public void insert(Restaurant rest) {
String[] args = { String.valueOf(rest.getId()), rest.getName(),
rest.getDescription(), rest.getAddress(), rest.getTel1(),
rest.getTel2(), rest.getTel3(), rest.getEmail(),
String.valueOf(rest.getCategory()),
String.valueOf(rest.getRegion()) };
m_db.rawQuery(
"INSERT OR REPLACE INTO restaurant(id,name,description,address,tel1,tel2,tel3,email,category,region) VALUES(?,?,?,?,?,?,?,?,?,?)",
args);
}