0

my db file code is

public boolean insertUpdatedContact(String email1,String newpass){
    db=this.getWritableDatabase();
     ContentValues args = new ContentValues();
     args.put(COLUMN_PASS,newpass);
     int i= db.update(TABLE_NAME,args,COLUMN_EMAIL + "=" + email1, null);
     return i > 0;
}

and code for .java file is

helper.insertUpdatedContact(e,np1str);
Toast.makeText(this, "Modified Successfully",Toast.LENGTH_SHORT).show();
helper.close();
user3071284
  • 6,955
  • 6
  • 43
  • 57
ANVESHA
  • 1
  • 1

0 Answers0