Horje
edit data from database sqlite android Code Example
edit data from database sqlite android
//Put this in your DAO or Activity

public void alteraTarefa(yourclass yourclass){
ContentValues contentValues=new ContentValues();
contentValues.put("yourdbcolumn",yourclass.getyourvaluefromclass());
contentValues.put("yourdbcolumn",yourclass.getyourvaluefromclass());
contentValues.put("yourdbcolumn",yourclass.getyourvaluefromclass());
db.update("yourtable",contentValues,"your_column_name_to_do_the_where="+ yourclass.getyourvaluefromclass(),null); /*<------ NOTE: if you do the where with a string instead of int you have to do the where with the '' */ 
}




Java

Related
forge close gui java Code Example forge close gui java Code Example
2d matrix Code Example 2d matrix Code Example
execute a multi line shell comand in java Code Example execute a multi line shell comand in java Code Example
primitive vs wrapper classes in java Code Example primitive vs wrapper classes in java Code Example
android java string video Code Example android java string video Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7