I need to have a 3 level 'drill down' listview in my Android app with the back button used to go 'up' a level and wanted to know what's the best practice to do this. The data will be coming from a local SQLite database.
From what I've read, I think I have two choices.
Implement each level of the listview as a seperate activity and start each activity as an intent passing the value that was selected at the previous level/activity.
Implement one activity (which can call itself passing the value of the listview to show) and use a switch statement to handle setting up the view for this levels row and data adapter.
I'm open to using either, although I'm slightly leaning towards option 2 as I feel creating three layouts for what are essentially identical screens is a bit of a waste.
Any suggestions on which method is better and anything to watch out for would be greatly appreciated.
Thanks,
NiVZ