能不能帮我看看程序啊,我想把bitmap变成一张图片保存在sd卡里,哪位好心人帮我看看代码吧谢谢了啊!
解决方案 »
- android 怎么样获取弹出窗口输入的信息
- NoClassDefFoundError
- 怎样用keytool生成MD5认证指纹?
- 关于更新UI的问题
- Android pppoe ADSL
- android开发用手机调试无打印Log信息
- 求救!程序在android 4.3下会出错. 报IllegalStateException: Already in the pool!
- ZXING识别区域,扫描二维码距离很远才能扫到
- android短信模块搜索框问题
- /dev/graphics/fb0可以打开,但是查看查看framebuffer位图格式为0,请教
- Android 有什么好的反编译工具的源码吗?
- 初级问题,帮忙看看android项目怎么开发
File mFile = new File(fileName);
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(mFile));
bm.compress(Bitmap.CompressFormat.JPEG, 80, bos);
bos.flush();
bos.close();用系统提供的compress(Bitmap.CompressFormat format, int quality, OutputStream stream)
bm就是你要保存文件的Bitmap对象,fileName就是你要保存的文件名