I have a class A which is responsible for fetching data from web services in android and i have a class B which is responsible for creating and rendering List View in android
Now how can i populate data on List View once the data is fetched successfully. well i have following options but which one is better .. (if someone has anyother then i don't mind)
1) Create an intent of Class B and pass the data that need to be populated
2) Creating a static method int Class B which will accept the data as an argument and call setListAdapter
in class B i have used Holder Patter to create ListActivity. ( for reference List14.java in samples of Android )