![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
tiberx
这个作者很懒,什么都没留下…
展开
-
Android处理Bit图片的几个函数分享
最近学习Android开发,发现图片处理很常用,特依据下载的各类代码,提取了几个不错的图片处理函数。读取本地资源的图片的方法如下:public static Bitmap ReadBitmapById(Context context, int resId) { BitmapFactory.Options opt = new BitmapFactory.Options(); op转载 2014-03-01 10:50:59 · 699 阅读 · 0 评论 -
计算sdcard上的剩余空间
计算sdcard上的剩余空间代码如下:private static int freeSpaceOnSd() { StatFs stat = new StatFs(Environment.getExternalStorageDirectory() .getPath()); double sdFreeMB = ((double) stat.getAvailableBlocks()转载 2014-03-01 10:55:24 · 629 阅读 · 0 评论