I am having a List of Item which I retrieved from my Sqlite DB... I wants to set Click event for each n every item.. How I can customise this event based on Item clicked???? Be Descriptive... I am a Begineer..
The method tht I used to fill data in my List ..
private void fillData() {
db = new DBAdapter(this);
db.open();
ArrayList db_results = new ArrayList();
//All Category
//Cursor cursor = db.getAllTitles();
//Single Category
Cursor cursor = db.getTitle(1);
if (cursor.moveToFirst())
{
do {
db_results.add(cursor.getString(4));
} while (cursor.moveToNext());
}
cursor.close();
this.list.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, db_results));
}