• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help with: setListAdapter(adapter);

 
Jonathan Wallace
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm following a tutorial on android in Android Programming where I'm supposed to type the following two lines:

The first line works fine, but when I add the second, setListAdapter gives me "Return type for the method is missing", and adapter gives me "adapter cannot be resolved to a type". Imports are as follows:

Anyone know what's wrong?
 
Jonathan Wallace
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind... it turns out the error wasn't there, but at a different place...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic