1SQLiteDatabase db=this.getWritableDatabase();
2ContentValues cv=new ContentValues();
3 cv.put("columName1",YOUR_VAR);
4 cv.put("columName2",YOUR_VAR);
5 cv.put("columName3",YOUR_VAR);
6int response=db.update("YourTable",cv,"columName = ?"+ new String[]{YOUR_VAR})
7 if(response==0){
8 db.insert("Your_table",null,cv);
9 }