上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 69 下一页
摘要: import java.beans.Encoder; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Md5Util { /** * @param args */ public static void main(... 阅读全文
posted @ 2016-12-30 20:59 iFat 阅读(677) 评论(0) 推荐(0) 编辑
摘要: /res/layout/dialog_confirm_psd.xml /res/layout/dialog_set_psd.xml 阅读全文
posted @ 2016-12-30 20:12 iFat 阅读(764) 评论(0) 推荐(0) 编辑
摘要: package com.itheima.mobilesafe74.utils; import android.content.Context; import android.content.SharedPreferences; public class SpUtil { private static SharedPreferences sp; /** * 写入boo... 阅读全文
posted @ 2016-12-28 15:53 iFat 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 1.将已经编写好的布局文件,抽取到一个类中去做管理,下次还需要使用此布局结构的时候,直接使用组合控件对应的对象. 2.将组合控件的布局,抽取到单独的一个xml中 3.通过一个单独的类,去加载此段布局文件. 4.checkBox是否选中,决定SettingItemView是否开启,isCheck(){ 阅读全文
posted @ 2016-12-27 19:14 iFat 阅读(156) 评论(0) 推荐(0) 编辑
摘要: GridView使用,和ListView使用方式类似 阅读全文
posted @ 2016-12-27 15:28 iFat 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 自定义控件编写流程 创建一个默认就能获取焦点的TextView 1.创建一个类继承至TextView,FocusTextView 2.重写其构造方法 3.将原有TextView上的isFocus方法默认修改为,能够获取焦点 4.使用过程 获取当前类的全路径名称,作为xml中的标签存在,其余属性的使用 阅读全文
posted @ 2016-12-26 10:21 iFat 阅读(3293) 评论(0) 推荐(0) 编辑
摘要: protected void downloadApk() { //apk下载链接地址,放置apk的所在路径 //1,判断sd卡是否可用,是否挂在上 if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){ //2... 阅读全文
posted @ 2016-12-23 18:23 iFat 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 1,导入xutils的jar包 2,添加xutils需要使用的权限 <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRI 阅读全文
posted @ 2016-12-23 17:43 iFat 阅读(203) 评论(0) 推荐(0) 编辑
摘要: public class StreamUtil { /** * 流转换成字符串 * @param is 流对象 * @return 流转换成的字符串 返回null代表异常 */ public static String streamToString(InputStream is) { //1,在读取... 阅读全文
posted @ 2016-12-20 18:59 iFat 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: /** * 检测版本号 */ private void checkVersion() { new Thread(){ public void run() { //发送请求获取数据,参数则为请求json的链接地址 //http://192.168.13.99:80... 阅读全文
posted @ 2016-12-20 17:03 iFat 阅读(242) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 69 下一页