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: