I would like to get the code from URL sources (XML Data). How can I do it? I can get the data source as a list. However, I could not filter it.
Example: spinner : "Today","Tomorrow" Upon select "Today" it will show out the events for today. Upon select "Tomorrow" it will show out the events for tomorrow.
Can someone help me?
I tried coding, however, I met some error.
I would like to get the XML data here:
<start_time>2013-09-25 09:00:00 </start_time>
! [Screenshot with XML] [1]
Here is my Java code:
public class AndroidXMLParsingActivity extends ListActivity implements OnItemSelectedListener { String[] browseby; Date d = new Date(); String[] dates = { "Today", "Tomorrow", "Next Week", }; ArrayList<String> browse = new ArrayList<String>(); ArrayList<String> mPostingData = new ArrayList<String>(); Spinner s1; ListView listview; CustomAdapter cus;
source share