Web API Android Studio Kotlin Tutorial | REST

Опубликовано: 20 Июнь 2022
на канале: Code With Cal
20 тыс
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:




Смотрите видео Web API Android Studio Kotlin Tutorial | REST онлайн без регистрации, длительностью 10 минут 23 секунд в хорошем hd качестве. Это видео добавил пользователь Code With Cal 20 Июнь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 20 тысяч раз и оно понравилось 29 людям.