随笔分类 -  android

android url 中文请求,乱码解决
摘要:解决乱码的代码: 1: private String connServerForResult(String url) { 2: String strResult = ""; 3: try { 4: HttpClient httpClient = new DefaultHttpClient(... 阅读全文

posted @ 2012-12-10 17:20 双耳 阅读(1299) 评论(0) 推荐(0)

android intent 传参应注意的
摘要:例如如下代码: 1 button = (Button) this.findViewById(R.id.search_button); 2 textView = (TextView) this.findViewById(R.id.text_search); 3 button.setOnClickListener(new OnClickListener() { 4 5 @Override 6 public void onClick(View v) { 7 Int... 阅读全文

posted @ 2012-12-06 14:44 双耳 阅读(320) 评论(0) 推荐(0)

导航