Implement ContentProvider for database access
Separate layouts for ExpandableListView items
Fix layouts
Add preferences constants
Optimize queries with inner join