I am intending to listing data which are retrieved from the database.
I need to show edited data(from the retrieved DB data ) into the
screen while the data is in screen in list view.
I am using cursor to fetch the data from the database.
to bind the data in setListAdapter, I am using SimpleCursorAdapter.
The cursor has one string column which I need to edit to show.
--------------
Cursor cur = DBH.query(true,DB_TABLE, new String[]{MY_FIELD});
String form[] = String[]{DBA.MY_FIELD};
int[] to = new int[]{R.id.lstTxt};
SimpleCursorAdapter sca = new SimpleCursorAdapter(this, R.layout.main,
cur, from, to);
setListAdapter(sca);
------------------
I need to edit MY_FIELD to show into the screen.
Do I need to use setFilterQueryProvider? If so , then how to do
that...
sca.setFilterQueryProvider(new FilterQueryProvider(){
@Override
public Cursor runQuery(CharSequence
constraint) {
// Here I need to append string
with the MY_FIELD to show in the
screen
// Do Not understand
how to do it
return null;
}
});
If any other way then how??
Could anybody help me in this???
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---