What is the best way to load external data in android?
Currently, this is what I do:
- Create RESTful web service that returns a JSON Array of objects (on a server)
- In android invoke HTTPGet and consume service
- Parse through response JSON
- Use GSON to parse response straight into an array of objects
- Use the array of objects as needed
Is this the optimal approach in terms of the Android documentation?
According to the Google I/O Creating REST apps presentation, you should do something like: