Hello All
I might be a bit late to the show with this one, but I've been busy completing paid work. Hopefully new members will find this useful.
The B4A example can be found here
Here is a simple to follow B4i tutorial on how to retrieve JSON data from an online server, in this case I'm using a well known Coronavirus COVID-19 data feed. The project layout file can easily be copied and pasted into a B4A layout file, you can also place the code module into a shared folder as B4i and B4A both use the exact same shared code module.
I'm not sure how long the JSON feed will stay up, it maybe only months or several years. So I've decided to download the 2 current JSON feed files and attached them to this post for future reference, just to be on the safe side.
Edit:
Removed Android-CoronavirusCOVID-19.zip - Original file (5 downloads)
Android-CoronavirusCOVID-19_V1.0.0.1.zip - Optimised and removed unnecessary code, now retrieving JSON data using API V2, removed refresh timer, added update button.
PLEASE NOTE: - As you can see below, the attached images below are themed Orange, I have removed the color theme from the attached example.
Libraries needed:
Country results - Click image for explanation
iOS country list
Enjoy...
I might be a bit late to the show with this one, but I've been busy completing paid work. Hopefully new members will find this useful.
The B4A example can be found here
Here is a simple to follow B4i tutorial on how to retrieve JSON data from an online server, in this case I'm using a well known Coronavirus COVID-19 data feed. The project layout file can easily be copied and pasted into a B4A layout file, you can also place the code module into a shared folder as B4i and B4A both use the exact same shared code module.
I'm not sure how long the JSON feed will stay up, it maybe only months or several years. So I've decided to download the 2 current JSON feed files and attached them to this post for future reference, just to be on the safe side.
Edit:
Removed Android-CoronavirusCOVID-19.zip - Original file (5 downloads)
Android-CoronavirusCOVID-19_V1.0.0.1.zip - Optimised and removed unnecessary code, now retrieving JSON data using API V2, removed refresh timer, added update button.
PLEASE NOTE: - As you can see below, the attached images below are themed Orange, I have removed the color theme from the attached example.
Libraries needed:
Country results - Click image for explanation
iOS country list
Enjoy...
Attachments
Last edited: