Web API Android Studio Kotlin Tutorial | REST

Опубликовано: 20 Июнь 2022
на канале: Code With Cal
23,270
323

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:
https://open.er-api.com/v6/latest/aud

Source code:
https://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:
https://www.benq.com/en-au/monitor/st...

Eye-CareU | BenQ Monitor Software:
https://www.benq.com/en-au/monitor/so...

BenQ Screenbars:
https://www.benq.com/en-au/lamps/comp...

BenQ Screen bar plus:
https://www.benq.com/en-au/lamps/comp...


#AndroidStudio #KotlinProgramming