So I have a ListView that color codes an icon based on the priority of each item in the list. For example, priority 1 workorders have a red workorder icon. Priority 2 = yellow, etc.
I use ImageView.setColorFilter(Color.whatever) to change the color of the icon and it works great on my Samsung Galaxy Tab and HTC Hero, however when I load the app onto an HTC Droid Eris, I get an error:
java.lang.NoSuchMethodError:android.widget.ImageView.setColorFilter
I have no idea why it works fine on everything else, but not this phone. Any ideas? I’m thinking perhaps it might be due to the Eris having Android 2.1 whereas the rest are 2.2 or higher. But I wouldn’t think such a basic method was not included before 2.2!
Any and all help is greatly appreciated! This community always helps when I’m stumped and Google won’t spit back any relevant results! Thanks in advance!
If you look at the documentation and filter by API version, you’ll see that this overload:
was introduced in API version 8, which is Android 2.2.
However, there are other overloads which were supported earlier:
Could you use one of those instead?