mysql - updating rows instead of creating new entries database android -
i have been working on recipe android recipe book utilize database storing events. current code allows me add new entries unable modify of added entries. need database predefined number of rows(48) functionality of updating these rows through corresponding edittext fields. can me modify following code achieve please? new android coding , need start database. here mydb file: package com.cookbook.data; import android.content.contentvalues; import android.content.context; import android.database.cursor; import android.database.sqlite.sqlitedatabase; import android.database.sqlite.sqliteexception; import android.util.log; public class mydb { private sqlitedatabase db; private final context context; private final mydbhelper dbhelper; // initializes mydbhelper instance public mydb(context c){ context = c; dbhelper = new mydbhelper(context, constants.database_name, null, constants.database_version); ...