【发布时间】:2017-01-06 02:48:49
【问题描述】:
我正在运行一个来自 AndroidHive 的应用程序,该应用程序具有 feed.json,该应用程序从中加载以下内容。
http://api.androidhive.info/feed/feed.json 这是帖子网址http://www.androidhive.info/2014/06/android-facebook-like-custom-listview-feed-using-volley/
{
"feed": [{
"id": 1,
"name": "National Geographic Channel",
"image": "A URL",
"status": "Science and etc"
And Cosmos is all about making science an experience.
","
profilePic ": "
A URL ","
timeStamp ": "
1403375851930 ","
url ": null
}]
}
以上是默认内容,我想知道如何从或使用 php 脚本向该内容添加更多内容。我很想知道怎么做,因为我注意到在 www_androidhive_info 中创建的大多数应用程序源代码都使用 .json 来加载内容,这是 webview 的替代方法
【问题讨论】: