I have an ArrayList adapter wich used to load my listView. My problem is that I want to change a pictures on the items in the list; Until now I used a simple String array and didnt have any problem, but I had to change it to ArrayList wich loaded by an ORMlite selection and now my adapter doesent change the pictures...
I toast the text of the item wich is like ..."Asd"... and in the adapter I use this:
if(textView.getText()=="Asd"){imageView.setImageResource(R.drawable.ic_asd);}
I also tried this:
if(values.get(position).getName()=="Asd")
{
imageView.setImageResource(R.drawable.ic_asd);
}
What is the problem? :S