码迷,mamicode.com
首页 > Web开发 > 详细

搜索功能和带值跳转webview

时间:2016-04-18 11:45:12      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:

mainactivity.java

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);

 
   

搜索功能和带值跳转webview

标签:

原文地址:http://www.cnblogs.com/nanze/p/5403680.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!