I would like to be able to populate a list that exists on a Tab based on a selection from a prior screen: eg. Initial screen has say, a list of Vegetables (Potatos, Mushrooms, etc) and when you select one the second Activity is opened that contains a TabHost. On one of the tabs I would like to show a list of varieties of selected vegetable, another tab various wholesalers.
I have created the various pages and can load them onto the tab pages but cannot work out how to reference the list control on the tab page to be able to populate it from a SQL lookup.
This poses a number of questions:
1) Can you use Lists on a Tab?
2) If so, can you create them with the Designer and reference them from code or do they need to be created in code?
3) If yes to both of the above, what code allows me to make the desired reference?
Any assistance would be greatly appreciated.
I have created the various pages and can load them onto the tab pages but cannot work out how to reference the list control on the tab page to be able to populate it from a SQL lookup.
This poses a number of questions:
1) Can you use Lists on a Tab?
2) If so, can you create them with the Designer and reference them from code or do they need to be created in code?
3) If yes to both of the above, what code allows me to make the desired reference?
Any assistance would be greatly appreciated.