if (v.getId()==R.id.btnUpdate) { Cursor value = null ; dbAdaptert.open(); String name=value.getString(value.getColumnIndex("name")); String pass=etpass.getText().toString(); String uname=etuname.getText().toString(); long update=dbAdaptert.updateTest(name, uname, pass); if(update>=0) { Toast.makeText(getApplicationContext(), "Data updated",Toast.LENGTH_LONG).show(); } else { Toast.makeText(getApplicationContext(), "Data not updated",Toast.LENGTH_LONG).show(); } dbAdaptert.close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)