I am working on a CRM app in android, in which, I am showing details of all contacts in a list view. Now, my requirement is when I click on a particular item in the list, it should only display the details about selected contact, such as, name, address, email, etc.. The data is coming from XML file, which I am parsing using SAX Parser. How can I query a XML to get selected data?
Share
You are filling the
ListViewusingAdapterright? Now you can get the item at the selected view inside theListViewand pass this item to anActivity.E.g. inside your
Adatperclass implement theonItemClickListener:Note: the item “Data” class should implement the
Parsableinterface so it can be passed to theActivityin yourDetailedActivityonCreatemethod get that object and update theUIbased on its Values.