I have added a listview to an activity via the designer. When I try to add a single line to it it says that I must initialize it first. How can this be? I thought that is exactly what you are not supposed to do.
It isn't necessary. I think that the name of your listview in the designer not is the same that in your code. You should review the names of the variables.
The name is definitely the same. I have had to define the listview in a dim statement as well otherwise the program won't compile. The listview is in a second activity not the main one, if this gives a clue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.