I'm doing an application that need to receive an unknow number of names with they and a id.
I have solved the php and mysql part and this is what I receive into my app:
[{"id":"3","nombre":"Kaotik Sabadel"},{"id":"4","nombre":"Promotor Kaotik"}]
In the android part I start with this:
myJsonObj = new JSONObject(jodata);
and that's all I have.
And I want to set the names (nombre) into an spinner and when the user choose this name, get the value of his id...