String output_ktdk="";
String outputjson = result.replace("[", "").replace("]", "");
listView = (ListView) findViewById(R.id.listView1);
String[] values = new String[] {
outputjson
};
final ArrayList<String> list = new ArrayList<String>();
for (int i = 0; i < values.length; ++i) {
list.add(values[i]);
}
ArrayAdapter<String> adapter = new ArrayAdapter<String>(MainActivity.this,
android.R.layout.simple_list_item_1, android.R.id.text1, list);
listView.setAdapter(adapter);
显示列表视图:&#34; abc&#34;,&#34; abc&#34;,&#34; abc&#34; .....
帮助我..............
cxcxccx
答案 0 :(得分:0)
首先应该使用JSONObject
解析outputjson