Android list view to display unique values from xml source

rartrumvell

New Member
For an Android applicaton, I am getting data from an XML source like below:\[code\]<item> <description>product description A </description> <category>categoryA</category></item><item> <description>product description B </description> <category>categoryB</category></item>\[/code\]I want to show all the category values in a list view. When user clicks on one category, show all description values for that category. For this, I need to extract all category values, remove the duplications, sort them in alphabetical order and use in a List View. What is the simplest way of doing it? If I write my own functions, it goes into so many loops. Any simpler way of achieving this?
 
Back
Top