Skip to content

Commit eed390a

Browse files
committed
[commit] update README
1 parent a3d3bb5 commit eed390a

File tree

3 files changed

+82
-10
lines changed

3 files changed

+82
-10
lines changed

README.md

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,91 @@
44
- 通过封装一层工具类的好处是以后只需要修改工具类的实现,就可以替换整体的框架。
55
- 参考了众多项目并加以改进和总结,如有疑问,请来信说明。
66

7+
- CipherUtils.java 加密工具
8+
* md5Encode:md5加密
9+
* base64Encode:Base64加密
10+
* base64Decode:Base64解密
11+
* XorEncode:异或加密
12+
13+
- DateUtil.java 日期工具
14+
* formatDate 格式化日期时间
15+
* customFormatDate 自定义格式的格式化日期时间
16+
* formatDataTime 格式化日期时间
17+
* formatDate 格式化日期
18+
* formatTime 格式化时间
19+
* getDataTime 获取系统时间
20+
21+
- DensityUtil.java 屏幕工具
22+
* dip2px dp转像素
23+
* px2dip 像素转dp
24+
* px2sp 像素转sp
25+
* sp2px sp转像素
26+
* getDialogW 获取dialog宽度
27+
* getScreenW 获取屏幕宽度
28+
* getScreenH 获取屏幕高度
29+
30+
- FileUtils.java 文件工具
31+
* deleteFile 删除文件
32+
* existsFile 判断文件是否存在
33+
* writeFile 写文件
34+
* readFile 读文件
35+
* copyFileFast 快速复制
36+
* closeIO 关闭IO流
37+
* zip zip压缩
38+
* unzip zip解压
39+
40+
- JsonUtils.java Json相关工具
41+
* toJson 对象转json
42+
* fromJson json转对象
43+
44+
- NetUtils.java 网络工具
45+
* getNetworkType 获取网络类型
46+
* getNetworkTypeName 获取网络名称
47+
* checkNet 检查网络状态
48+
* isWiFi 是否wifi
49+
* isNetworkAvailable 网络可用性
50+
51+
- SPUtils.java SharedPreferences工具
52+
* setBoolean 存储布尔型属性
53+
* getBoolean 获取布尔型属性
54+
* setInt 存储整型属性
55+
* getInt 获取整型属性
56+
* setString 存储字符串型属性
57+
* getString 获取字符串属性
758

59+
- SystemUtils.java 系统工具
60+
* getPhoneIMEI 获取手机IMEI码
61+
* getSDKVersion 获取手机系统SDK版本
62+
* getSystemVersion 获取系统版本
63+
* sendSMS 调用系统发送短信
64+
* hideKeyBoard 隐藏系统键盘
65+
* isBackground 判断当前应用程序是否后台运行
66+
* isSleeping 判断手机是否处理睡眠
67+
* installApk 安装apk
68+
* getAppVersionName 获取当前应用程序的版本名称
69+
* getAppVersionCode 获取当前应用程序的版本号
70+
* goHome 返回Home
71+
* getSign 获取应用签名
72+
* hexdigest 32位签名
73+
* getDeviceUsableMemory 获取设备可用空间
74+
* gc 清理后台进程和服务
75+
* createDeskShortCut 创建桌面快捷方式
76+
* captureView 控件截图
77+
78+
- ViewUtils.java View工具
79+
880
## License
981
Copyright (C) 2016 android@19code.com
1082

11-
Licensed under the Apache License, Version 2.0 (the "License");
12-
you may not use this file except in compliance with the License.
13-
You may obtain a copy of the License at
83+
Licensed under the Apache License, Version 2.0 (the "License");
84+
you may not use this file except in compliance with the License.
85+
You may obtain a copy of the License at
1486

1587
http://www.apache.org/licenses/LICENSE-2.0
1688

17-
Unless required by applicable law or agreed to in writing, software
18-
distributed under the License is distributed on an "AS IS" BASIS,
19-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20-
See the License for the specific language governing permissions and
21-
limitations under the License.
89+
Unless required by applicable law or agreed to in writing, software
90+
distributed under the License is distributed on an "AS IS" BASIS,
91+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
92+
See the License for the specific language governing permissions and
93+
limitations under the License.
2294

library/src/main/java/com/code19/library/NetWorkUtils.java renamed to library/src/main/java/com/code19/library/NetUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* @description Codes there always can be better.
3232
*/
33-
public class NetWorkUtils {
33+
public class NetUtils {
3434

3535
public static final String NETWORK_TYPE_WIFI = "wifi";
3636
public static final String NETWORK_TYPE_3G = "3g";

library/src/main/java/com/code19/library/SystemUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static void installApk(Context context, File apkfile) {
142142
}
143143

144144
/**
145-
* 获取当前应用程序的版本号
145+
* 获取当前应用程序的版本名称
146146
*/
147147
public static String getAppVersionName(Context context) {
148148
String version = "0";

0 commit comments

Comments
 (0)