简体   繁体   English

从 api 检索数据 - Android 工作室,Kotlin

[英]Retrieving data from api - Android studio, Kotlin

I'm new at kotlin and Android studio in general.我是 kotlin 和 Android 工作室的新手。 I want to create an application in which the user will enter certain data and according to this data, the result from api will be retrieved, which best corresponds to the entered data.我想创建一个应用程序,用户将在其中输入某些数据,并根据此数据检索 api 的结果,该结果与输入的数据最对应。 Can anyone give me advice on where to start or suggest some tutorial?So far I have done the design and created certain xml files.谁能给我建议从哪里开始或建议一些教程?到目前为止,我已经完成了设计并创建了某些 xml 文件。

You can checkout Retrofit it is an android library used for networking / api calls.您可以查看 Retrofit它是一个用于网络 / api 调用的 android 库。 There are multiple tutorials available for this.有多个教程可用于此。

You can use retrofit, I suggest you this article你可以使用retrofit,我建议你这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从另一个活动中检索共享偏好项。 Android 工作室,Kotlin,API 29 - Retrieving a shared preferences item from another activity. Android Studio, Kotlin, API 29 根据文本值使用kotlin将数据从Firebase检索到android studio - Retrieving data from firebase to android studio using kotlin depending on text value 如何将此代码 Java 转换为 Kotlin for Android Studio 以检索文件数据? - How to convert this code of Java to Kotlin for Android Studio for retrieving data of a file? Android Studio-无法从Firebase检索数据 - Android Studio - Retrieving data from firebase is not working 从Firebase Android Studio检索数据 - Retrieving data from Firebase Android Studio 从Android Studio中的Firebase检索数据时出现NullPointerException - NullPointerException in retrieving data from Firebase in Android Studio 如何使用 MVVM 从 android studio Kotlin 中的谷歌地图标记的 api 调用实时数据 - How to call live data from a api for google maps marker in android studio Kotlin using MVVM 如何使用Kotlin Android Studio中的SharedPreferences保存我从API获取的数据 - How to save data that I fetched from API, using SharedPreferences in Kotlin Android Studio 将数据从 Android Kotlin API 记录到房间 - Recording data from Android Kotlin API to the room 关于Api Kotlin android Studio - Regarding Api Kotlin android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM