0
I am trying to get the values of 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 String is:
I/System.out﹕ {perref=May / 2015, tipcal=Cálculo Mensal, codcal=408}
How can I separate these 3 comma-separated values into 3 strings?
Has anyone ever come across the situation?
There’s some other way to do it?
This doesn’t solve you? How to retrieve specific parts/values/os from a string?
– Math