Рет қаралды 19,943
How to fetch data from a web API and display with in android app using kotlin and android studio. In todays tutorial we build a very simple app that pulls currency data from a web server and we then decode that data from JSON format with gson which is a google plugin. the data is converted from JSON into our kotlin object and then displayed in some text views.
Example API:
open.er-api.com/v6/latest/aud
Source code:
github.com/codeWithCal/FetchD...
⏱️ TIMESTAMPS ⏱️
00:00 - Intro Web API
00:46 - BenQ Monitor ScreenBar
02:22 - API initial
03:02 - XML layout
04:42 - Fetch Data from API
06:16 - Internet Permission Android
06:55 - Decode JSON
27 inch FHD 1080p Eye-care IPS Monitor:
www.benq.com/en-au/monitor/st...
Eye-CareU | BenQ Monitor Software:
www.benq.com/en-au/monitor/so...
BenQ Screenbars:
www.benq.com/en-au/lamps/comp...
BenQ Screen bar plus:
www.benq.com/en-au/lamps/comp...
#AndroidStudio #KotlinProgramming