Categories
Development

Android: fill a spinner data from the server dynamically

I’m new to android. How do you fill a spinner from the server’s data dynamically. So I’m trying to populate data from the server to my spinner. my JSON is {“topic”: “/waypoints”, “msg”: {“waypoints”: [{“header”: {“stamp”: {“secs”: 0, “nsecs”: 0}, “frame_id”: “map”, “seq”: 0}, “pose”: {“position”: {“y”: -140.901899144836, “x”: 44.36469369653882, “z”: 0.0}, “orientation”: {“y”: 0.0, […]