For a List view you must have an adapter. To fill the list items you need data. Now here is the question:
- is this a good idea to download the data in custom adapter ?
- or better is download data in activity & pass it to adapter ?
- or their is any better way to achieve that ?
I got a better answer for this question:
AsyncTaskor fromSQLiteor something else.AsyncTaskor fromSQLiteor something else.But the better option is loading the data in Activity & use it in Adapter. It will help you to make your codes cleaner & it will give you more flexibility, to manage your data. But in some situations, you may consider to prepare the data in Adapter; if you have difficulties to load it in Activity.
Both works fine, Its up to you which will you consider.