Get Json Information? (noob)
I'm new to both using json and developing for android, however I'm looking to learn how to retrieve information using a json api key. Let's say this website has all the information
Solution 1:
To access it, you need to open HTTPS connection to the server that has that API key, which is that https address you just provided. The server will return the JSON objects for you, to parse the string data, you can use GSON. GSON will translate all the JSON objects into Java objects, and it will help you populate your pre-built Java data structures with those data
Solution 2:
You can get the web content using the Android HTTPClient (or follow something like the guide on this page).
For storage, you need to parse the JSON - see this SO question.
For storage, either store the raw JSON in a file or create an SQLite database and store it according to your specifications.
Post a Comment for "Get Json Information? (noob)"