Hello everyone i want to make this Lazylist dynamic . i have tried with images first buts its coming with force to close . Please guide if my approach is wrong. Here is code
list.setAdapter(adapter);
According to your output, that line is erroring saying that something (your mStrings
variable) is null when it tried to getCount()
from it.
Try instead moving that line to after you have gathered data on mStrings
.
You will want to consider setting it to an empty String[]
then having it load the data on a background thread, then adding items through another method at the completion of the download.