I'm trying to get the values from a ListView to send them to another screen by clicking on the item.
So I have the following code:
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
String sttr = parent.getItemAtPosition(position).toString();
System.out.println(sttr);
}
The return of the String is:
I/System.out﹕ {perref=May / 2015, tipcal=Cálculo Mensal, codcal=408}
How can I separate 3 comma-separated values into 3 strings?
Has anyone ever come across the situation?
Is there any other way to do this?