从android中的api获取json数据 [英] get json data from api in android
本文介绍了从android中的api获取json数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的应用程序中,我想在列表中显示数据。我有api url,以Json格式返回数据。请帮助我,如何在andorid中获取数据。
Hi All,
In my application i want to display data in a list. I have the api url , that return data in Json format. please help me , how to fetch data in andorid.
推荐答案
您需要调用API以获取JSON格式的数据并将其附加到列表中。不确定是什么问题,但这里是 [ LINK ],它解释了如何以多种方式执行此操作。
You need to call API to get data in the JSON format and append it in the list. Not sure what is the problem but here is [LINK] which explains how to do this in multiple ways.
检查这些:
将数据从json对象显示到android listview [ ^ ]
从JSON获取数据到列表视图 [ ^ ]
android显示json对象到列表视图 [ ^ ]
从Web服务器解析JSON数据并在ListView上显示 [ ^ ]
Check these:
Show data from json object to android listview[^]
Fetch data from JSON into List View[^]
android display json object to listview[^]
Parse JSON data from a web server and display on ListView[^]
这篇关于从android中的api获取json数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文