New human

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2013年2月23日

摘要: ry as:Bundle extras =newBundle();extras.putSerializable("HashMap",Hash_Map);intent.putExtras(extras);and in second ActivityBundle bundle =this.getIntent().getExtras();if(bundle!=null){Hash_Map= bundle.getSerializable("HashMap");becuaseHashmapby default implementsSerializableso yo 阅读全文
posted @ 2013-02-23 16:24 mypzx 阅读(333) 评论(0) 推荐(0)

摘要: 在WebView上显示HTML内容,包括英文以及中文。有3种方法可以有用:(1)使用loadData方法。这种方法需要先将HTML内容进行编码,否则显示的中文会有乱码。编码方法为:Java代码privateStringfmtString(Stringstr){Stringnotice="";try{notice=URLEncoder.encode(str,"utf-8");}catch(UnsupportedEncodingExceptionex){}returnnotice;}调用fmtString方法:Java代码mWebView.loadData( 阅读全文
posted @ 2013-02-23 13:35 mypzx 阅读(5397) 评论(0) 推荐(0)

摘要: http://www.coderanch.com/t/379449/java/java/String-array-arraylist 阅读全文
posted @ 2013-02-23 11:39 mypzx 阅读(167) 评论(0) 推荐(0)