final String key = et.getText().toString(); new Thread(new Runnable() {
@Override public void run() { // TODO Auto-generated method stub String data = HttpRequestJsonStr.getJSONStr("http://93.gov.cn/93app/get_search.do?key="+key); Gson gson = new Gson(); NewsJson mJson = gson.fromJson(data, NewsJson.class); mList = mJson.getData(); Message message = new Message(); message.obj = mList; hand.sendMessage(message); } }).start();
infoactivity.java
Intent it = getIntent(); String id = it.getStringExtra("ID"); String title = it.getStringExtra("title"); String name = it.getStringExtra("name"); String time = it.getStringExtra("time"); title1.setText(title); name1.setText(name); time1.setText(time); web.loadUrl("http://www.93.gov.cn/93app/info.do?id="+id);