这是我的代码:
public void handleBlogResponse() {
mProgressBar.setVisibility(View.INVISIBLE);
if (mVideoData == null) {
updateDisplayForError();
}
else {
try {
HttpClient httpclient = new DefaultHttpClient();
httpclient.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
HttpGet request = new HttpGet("http://sql.gamedayxtra.com/api/Club/GetClubVideos/1");
HttpResponse response = httpclient.execute(request);
HttpEntity resEntity = response.getEntity();
String _response=EntityUtils.toString(resEntity);
JSONArray jr = new JSONArray("_response");
for(int i=0;i<jr.length();i++)
{
JSONObject jb = (JSONObject) jr.get(i);
String id =jb.getString("$id");
String clubvid = jb.getString("ClubVideoId");
String clubid = jb.getString("ClubId");
String title = jb.getString("Title");
String thumb = jb.getString("ThumbURL");
String video = jb.getString("VideoURL");
String date = jb.getString("DataAdded");
}
} catch (JSONException e) {
Log.e(TAG, "Exception caught!!", e);
}
}
}'
我不知道如何将这些字符串放入列表视图中。