I am trying to call getIcon on a Preference declared in xml for android. I am calling it in the onCreate for the preference Activity after all the resources have been inflated.
The icon shows up but if I do findPreference(key) then it calls getIcon and on that preference the icon returned is null.
Am I missing something?
Preference, manually load the icon from theAttributeSetsupplied to the constructor, and pass that tosetIcon(int). Or you could postpone thegetIcon()call until the preference has been displayed on screen. - alanv