老师, url参数代表什么啊?
private List<NewsBean> getJsonData(String url)
{
List<NewsBean> newBeanlist=new ArrayList<NewsBean>();
try {
String jsonstring=redStearm(new java.net.URL(url).openStream());//于Openconnection.getInputStream()相同,
Log.d("syx", jsonstring);
JSONObject jsonboject;
NewsBean newbean;
try {
jsonboject=new JSONObject(jsonstring);
JSONArray jsonArray=jsonboject.getJSONArray("data");
for (int i = 0; i < jsonArray.length(); i++) {
jsonboject=jsonArray.getJSONObject(i);
newbean=new NewsBean();
newbean.newsIconURL=jsonboject.getString("picSmall");
newbean.newsTitle=jsonboject.getString("name");
newbean.newsContent=jsonboject.getString("description");
newBeanlist.add(newbean);
这个方法里面参数url是什么东西啊? 我搞不懂。 求解释, 谢谢
还有这个方法new NewAsyncTask().execute(URL); 有用什么用啊?