- 博客(7)
- 收藏
- 关注
原创 android图片压缩连环使用,达到递归效果
private Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compress(Bitmap.CompressFormat.JPEG, 100, baos);//质量压缩方法,这里100表示不
2014-09-10 11:33:03 843
原创 android处理图片工具类,图片压缩,把图片互换转换成base64和bitmap
private static byte[] bitmapToBytes(Bitmap bitmap) {if (bitmap == null) {return null;}final ByteArrayOutputStream os = new ByteArrayOutputStream();// 将Bitmap压缩成PNG编码,质量为100%存储bitmap.compre
2014-09-09 13:51:04 1352
原创 android判断网络连接工具类
import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;public class NetWorkUtils {/*** * 判断是否有网络连接* @param context* @return*/p
2014-09-09 13:30:03 508
原创 Android web与progressbar结合使用
xml文件: android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" > android:id="
2014-09-09 13:27:31 443
转载 android强大的工具类
Android代码集锦 SD卡相关 1. 检测Sdcard是否可用:[java] view plaincopypublic static boolean sdCardIsAvailable() { String status = Environment.getExternalStorageState()
2014-09-05 17:49:31 569
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人