Changes

Jump to: navigation, search

An Android Studio SQLite Database Tutorial

6 bytes added, 21:06, 22 May 2014
The Delete Handler Method
The deletion method will be named deleteProduct() and will accept as an argument the entry to be deleted in the form of a Product object. The method will use a SQL SELECT statement to search for the entry based on the product name and, if located, delete it from the table. The success or otherwise of the deletion will be reflected in a Boolean return value:
public boolean deleteProduct(String productname) {
<pre>
boolean result = false;

Navigation menu