Search code examples
javaandroidxmlsimpleadapter

Did I connect my Listview to simpleadapter?


enter image description here Can someone fix it? Can someone tells me that why the compiler doesn't allow me to do that? I watch this from online tutorial.


Solution

  • It's Object not Objects, but it's recommended to make it the specific data type you want to input in your map(Integer in your case) and this way you can make use of compile time checking of data types instead of doing that in run time. For example, you can't make it an Integer and input anything in it except Integers.