Is there a way to convert JSON Array to normal Java Array for android ListView data binding?
|
|||||
|
If you don't already have a JSONArray object, call
Then simply loop through that, building your own array. This code assumes it's an array of strings, it shouldn't be hard to modify to suit your particular array structure.
|
||||
Maybe it's only a workaround (not very efficient) but you could do something like this:
Obviously you can change the ' |
||||
|
How about using java.util.Arrays?
|
|||||||
|