I already tried references from similar question on SO, but hasn\'t got the appropriate solution.
I\'m trying to fetch the data from a webpage and displ
I think the error was got for the layout object as you pass the this into the listviewAdapter() constructor and get the layout in that that means you retrieving the current activity layout which was set by setcontentview() and that is your main.xml layout. while for the control or object for the textview for custom list you need to pass that layout resource id when you layout the inflate time. just check that first you got the error where and write the comment on that line in code
LayoutInflater inflater = activity.getLayoutInflater();
I think here you getting the main.xml file layout instead of listview_row.xml