I’m writing a simple application for Android.
I have 2 tables – one called ‘grous’ and another called ‘group_items’.
I want to use expandable list to display data from both tables.
What is the best way to do it? Is it possible to map data by using SimpleCursorTreeAdapter? I couldn’t find any usefull examples.
I saw the examples creating expandable lists using ArrayAdapter, so should I convert data to array first and then create an expandable list with it or there is the way to do it directly?
I don’t need a full working example – just an advice on what is the correct and most efficient way to do it.
Leonti
I found that the simplest solution would be to use SimpleCursorTreeAdapter.
Here is code example (important parts):
Hope it will be useful 😉