Skip to main content

Posts

Showing posts from September, 2016

Sq-Lite and ListView(II) - Android Tutorial

This tutorial explain with the simple application which explains,                - How to create sq-lite database                - How to insert data into sq-lite database                - How to retrieve the data from sq-lite and display it in ListView                - Using CursorAdapter (To perform Edit, Delete from list) To create this simple application do the following:- To create sq-lite database Create the class with the name  DBHelper   with extends  SQLiteOpenHelper   and copy the following coding Check it in previous tutorial Sq-Lite and ListView(I) Create the class with the name  DBUtil   and copy the following coding Check it in previous tutorial  Sq-Lite and ListView(I) Add the delete query in DBUtil public int deltask(String pid) { return sqliteDb .delete(DBHelper. TODO_TABLE , DBHelper. ROW_ID_FIELD + "='" + pid + "'" , null ); Then create the activities First