Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

insert data from database sqlite android

public void insertDB(yourclass yourclass){
ContentValues contentValues=new ContentValues();
contentValues.put("yourDBcolumn",yourclass.getyourvariable());
contentValues.put("yourDBcolumn",yourclass.getyourvariable());
contentValues.put("yourDBcolumn",yourclass.getyourvariable());
db.insert("yourdatabase", null, contentValues);
}
 
PREVIOUS NEXT
Tagged: #insert #data #database #sqlite #android
ADD COMMENT
Topic
Name
3+7 =