Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am developing one simple demo project thing is i am beginner in that so i need to update new password in existing password using sqLite database so please help me how to do update.
Posted
Comments
Krunal Rohit 3-Dec-15 1:18am    
Do not repost the question.
Regarding sqlite database[^]

-KR

1 solution

public int updateProfile(Customer customer) {
SQLiteDatabase db = this.getWritableDatabase();

ContentValues values = new ContentValues();
values.put(KEY_QUANTITY, customer.getQuantityAdded());
values.put(KEY_PACKAGING, customer.getPackagings());
values.put(KEY_PRICE, customer.getPrice());

return db.update(TABLE_CUSTOMER, values, KEY_PRODUCT_ID + " = ?", new String[] { String.valueOf(customer.getMenu_ID()) });
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900