Dear all,
In my app i want to display data from SQLite in listview. Listview
will activate while clicking the curresponding EditText. I coded those
things. But problem arising is , while i click one item in listview i want
to display another item in the TextView relate to that clicked item. I code
two function, First for display the strings in database in listview, Second
func for taking the curresponding output from clciked one...
Cursor c = newDB.rawQuery("SELECT balance FROM " + tableName + " where
cusname = 'item' " ,null);
Log.e("running", "cursor run");
if(c!=null)
{
Log.e("running", "curosr is not null");//// HERE WORKING
while(c.moveToFirst()) ///////// """THIS PART IS NOT
WORKING""""""
{
Log.e("running", "curosr while loop enter");
bal = c.getString(c.getColumnIndex("balance"));
Log.d(" ","after the cursor");
}
}
}
iS THAT PROBLEM IN MY CODE.. OR ANY OTHER SOLUTION PLEASE HELP...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en