从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
[^]