Web API Android Studio Kotlin Tutorial | REST

Published: 20 June 2022
on channel: Code With Cal
20K
29

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:


Source code:


⏱️ 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:


Eye-CareU | BenQ Monitor Software:


BenQ Screenbars:


BenQ Screen bar plus:




Watch video Web API Android Studio Kotlin Tutorial | REST online without registration, duration 10 minute 23 second in high hd quality. This video was added by user Code With Cal 20 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 20 thousand once and liked it 29 people.