随笔分类 -  Android

安卓实用技巧
安卓图片转换
摘要:安卓图片处理转换 /** * 对安卓图片的处理 */public class GetPicture { //drawable转化为二进制图片数据 public static byte[] getPicture(Drawable drawable) { if(drawable == null) { r 阅读全文
posted @ 2021-11-29 22:19 jeremie_my00 阅读(45) 评论(0) 推荐(0)
图片验证码
摘要:图片验证码 1.验证码工具类 public class Code {​ //随机数数组 private static final char[] CHARS = { '1','2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 阅读全文
posted @ 2021-11-29 22:16 jeremie_my00 阅读(152) 评论(0) 推荐(0)
根据content找到对应的activity
摘要:根据content找到对应的activity //根据context查找activity public static Activity findActivity(Context context) { if (context instanceof Activity) { return (Activit 阅读全文
posted @ 2021-11-29 21:21 jeremie_my00 阅读(133) 评论(0) 推荐(0)
获取手机唯一标识
摘要:获取手机唯一标识 //获取手机的唯一标识public static String getPhoneId(){ String uuid = ""; String serial = null;​ String m_szDevIDShort = "35" + Build.BOARD.length() % 阅读全文
posted @ 2021-11-29 21:17 jeremie_my00 阅读(346) 评论(0) 推荐(0)
防止快速点击加载多个activity
摘要:防止快速点击加载多个activity 1.新建一个工具类 /** * 判断是否是快速点击 */public class CheckOnclick {​ private static long lastClickTime;​ public static boolean checkDoubleClick 阅读全文
posted @ 2021-11-29 21:10 jeremie_my00 阅读(49) 评论(0) 推荐(0)