Skip to content Skip to sidebar Skip to footer

My Simple Adapter Wont Populate My Listview

I am creating an android application and my code will loop through the json data and if finds a match to the string that i have placed in ( in this case 'Guil Hernandez') , then i

Solution 1:

If you want to compare strings use equals(). Like this:

if (name.equals("Guil Hernandez")) {

     hashMap.put(KEY_NAME, name);
     hashMap.put(KEY_TITLE, title);

     nameArrayList.add(hashMap);
}

Post a Comment for "My Simple Adapter Wont Populate My Listview"