调用web service 返回一段话
hello world!! <img src="http://www.xxx.com/hello.jpg">
然后把这段话存入mapmap.put("con",html);然后弄到适配器,并送到GridView显示但是显示出来还是这句话,,如何显示图片是否要在map.put("con",html);这个操作之前有啥处理?????
需要代码解释
hello world!! <img src="http://www.xxx.com/hello.jpg">
然后把这段话存入mapmap.put("con",html);然后弄到适配器,并送到GridView显示但是显示出来还是这句话,,如何显示图片是否要在map.put("con",html);这个操作之前有啥处理?????
需要代码解释
解决方案 »
- android mediaplayer问题
- 谁能帮忙解决下这个android问题。做过android游戏用过surfaceview的来看看。
- 自动登录,求思路
- 界面刷新的问题
- utf8 的乱码怎么正常显示
- 手机通话界面最小化
- View.OnClickListener没反应求指点
- listview的setOnItemClickListener点击后item中的控件也跟着改变样式
- 初学andriod出现java.lang.NullPointerException
- 关于Android开发中install run is not supported on devices with api levels 20 or lower
- android4.0系统下不能全屏播放视频。
- android 中 SQLite 如何保存图片,用Blob类型进行保存!!!!
/**
* 从网络上下载
*
* @param url
* @return
*/
public static Bitmap getBitMapFromUrl(String url) {
URL myFileUrl = null;
Bitmap bitmap = null;
try {
myFileUrl = new URL(url);
HttpURLConnection conn = (HttpURLConnection) myFileUrl
.openConnection();
conn.setDoInput(true);
conn.connect();
InputStream is = conn.getInputStream();
bitmap = BitmapFactory.decodeStream(is);
is.close();
} catch (Exception e) {
e.printStackTrace();
}
return bitmap;
}