- GB - 类 中的静态变量com.mazouri.tools.constants.ConstantsTool
-
GB与Byte的倍数
- GB - 类 中的静态变量com.mazouri.tools.image.BitmapTool
-
- generateKeyPair() - 类 中的方法com.mazouri.tools.secure.SecureRSATool
-
生成密钥对
- getAllBackgroundProcesses() - 类 中的方法com.mazouri.tools.app.ProcessTool
-
获取后台服务进程
需添加权限 <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
- getAllContactInfo() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取手机联系人
需添加权限 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
需添加权限 <uses-permission android:name="android.permission.READ_CONTACTS"/>
- getAllRunningService(Context) - 类 中的静态方法com.mazouri.tools.app.AppTool
-
获取所有运行的服务
- getAllSDCardSize() - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取SD大小
- getAllSMS() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取手机短信并保存到xml中
需添加权限 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
需添加权限 <uses-permission android:name="android.permission.READ_SMS"/>
- getAllStorageLocations() - 类 中的方法com.mazouri.tools.io.ExternalStorageTool
-
- getAppDetailsSettings(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App具体设置
- getAppDetailsSettings(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App具体设置
- getAppDetailsSettingsIntent(String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取App具体设置的意图
- getAppIcon(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App图标
- getAppIcon(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App图标
- getAppName(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App名称
- getAppName(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App名称
- getAppPackageNamelist(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取非系统应用包名
- getAppPath(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App路径
- getAppPath(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App路径
- getAppSignature(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App签名
- getAppSignature(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取App签名
- getAppSignatureSHA1(Context) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取应用签名的的SHA1值
可据此判断高德,百度地图key是否正确
- getAppSignatureSHA1(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
获取应用签名的的SHA1值
可据此判断高德,百度地图key是否正确
- getAppVersionCode(Context) - 类 中的方法com.mazouri.tools.app.AppTool
-
获取应用版本号
- getAvailaleSDCardSize() - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取可用空间大小
- getCaptureIntent(Uri) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取拍照的意图
- getChannelFromApk(Context, String) - 类 中的方法com.mazouri.tools.apk.ApkTool
-
从apk中获取版本信息
- getCharset() - 类 中的方法com.mazouri.tools.secure.SecureHexTool
-
- getCharsetName() - 类 中的方法com.mazouri.tools.secure.SecureHexTool
-
- getChineseZodiac(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取生肖
time格式为yyyy-MM-dd HH:mm:ss
- getChineseZodiac(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取生肖
time格式为pattern
- getChineseZodiac(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取生肖
- getChineseZodiac(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取生肖
- getChineseZodiac(int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取生肖
- getComponentIntent(String, String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取其他应用组件的意图
- getComponentIntent(String, String, Bundle) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取其他应用组件的意图
- getDataEnabled() - 类 中的静态方法com.mazouri.tools.device.NetworkTool
-
判断移动数据是否打开
- getDegress(String) - 类 中的方法com.mazouri.tools.image.BitmapTool
-
根据path
- getDirLength(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取目录长度
- getDirLength(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取目录长度
- getDirName(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的最长目录
- getDirName(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的最长目录
- getDirSize(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取目录大小
- getDirSize(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取目录大小
- getDomainAddress(String) - 类 中的静态方法com.mazouri.tools.device.NetworkTool
-
获取域名ip地址
需添加权限 <uses-permission android:name="android.permission.INTERNET"/>
- getExternalStorageDirectory() - 类 中的方法com.mazouri.tools.device.DeviceTool
-
多个SD卡时 取外置SD卡
- getFileByPath(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
根据文件路径获取文件
- getFileCharsetSimple(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
简单获取文件编码格式
- getFileCharsetSimple(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
简单获取文件编码格式
- getFileExtension(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的文件拓展名
- getFileExtension(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的文件拓展名
- getFileLastModified(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件最后修改的毫秒时间戳
- getFileLastModified(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件最后修改的毫秒时间戳
- getFileLength(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件长度
- getFileLength(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件长度
- getFileLines(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件行数
- getFileLines(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件行数
- getFileMD5(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件的MD5校验码
- getFileMD5(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件的MD5校验码
- getFileMD5ToString(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件的MD5校验码
- getFileMD5ToString(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件的MD5校验码
- getFileName(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的文件名
- getFileName(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的文件名
- getFileNameNoExtension(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的不带拓展名的文件名
- getFileNameNoExtension(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取全路径中的不带拓展名的文件名
- getFileSize(String) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件大小
- getFileSize(File) - 类 中的方法com.mazouri.tools.io.FileTool
-
获取文件大小
- getFitTimeSpan(String, String, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型两个时间差
time0和time1格式都为yyyy-MM-dd HH:mm:ss
- getFitTimeSpan(String, String, int, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型两个时间差
time0和time1格式都为pattern
- getFitTimeSpan(Date, Date, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型两个时间差
- getFitTimeSpan(long, long, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型两个时间差
- getFitTimeSpanByNow(String, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型与当前时间的差
time格式为yyyy-MM-dd HH:mm:ss
- getFitTimeSpanByNow(String, int, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型与当前时间的差
time格式为pattern
- getFitTimeSpanByNow(Date, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型与当前时间的差
- getFitTimeSpanByNow(long, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取合适型与当前时间的差
- getForegroundProcessName() - 类 中的方法com.mazouri.tools.app.ProcessTool
-
获取前台线程包名
当不是查看当前App,且SDK大于21时,
需添加权限 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
- getFriendlyTimeSpanByNow(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取友好型与当前时间的差
time格式为yyyy-MM-dd HH:mm:ss
- getFriendlyTimeSpanByNow(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取友好型与当前时间的差
time格式为pattern
- getFriendlyTimeSpanByNow(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取友好型与当前时间的差
- getFriendlyTimeSpanByNow(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取友好型与当前时间的差
- getHrefInnerHtml(String) - 类 中的方法com.mazouri.tools.string.StringTool
-
get innerHtml from href
getHrefInnerHtml(null) = ""
getHrefInnerHtml("") = ""
getHrefInnerHtml("mp3") = "mp3";
getHrefInnerHtml("<a innerHtml</a>") = "<a innerHtml</a>";
getHrefInnerHtml("<a>innerHtml</a>") = "innerHtml";
getHrefInnerHtml("<a<a>innerHtml</a>") = "innerHtml";
getHrefInnerHtml("<a href="baidu.com">innerHtml</a>") = "innerHtml";
getHrefInnerHtml("<a href="baidu.com" title="baidu">innerHtml</a>") = "innerHtml";
getHrefInnerHtml(" <a>innerHtml</a> ") = "innerHtml";
getHrefInnerHtml("<a>innerHtml</a></a>") = "innerHtml";
getHrefInnerHtml("jack<a>innerHtml</a></a>") = "innerHtml";
getHrefInnerHtml("<a>innerHtml1</a><a>innerHtml2</a>") = "innerHtml2";
- getIMEI(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取IMEI
- getIMEI() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取IMEI码
需添加权限 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
- getIMSI() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取IMSI码
需添加权限 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
- getInstallAppIntent(String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取安装App(支持6.0)的意图
- getInstallAppIntent(File) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取安装App(支持6.0)的意图
- getIPAddress(boolean) - 类 中的静态方法com.mazouri.tools.device.NetworkTool
-
获取IP地址
需添加权限 <uses-permission android:name="android.permission.INTERNET"/>
- getLatestCameraPicture(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取最后一次拍照的图片
- getLaunchAppIntent(Context, String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取打开App的意图
- getLauncherActivity(Context, String) - 类 中的方法com.mazouri.tools.app.AppTool
-
获取launcher activity
- getLocalIPAddress() - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取本机IP地址
- getMac(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取MAC地址
- getMD5Code(String) - 类 中的方法com.mazouri.tools.secure.SecureMD5Tool
-
获取MD5编码
- getNavigationBarHeight(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取navigationbar高度
- getNetType(Context) - 类 中的方法com.mazouri.tools.device.NetworkTool
-
判断手机连接的网络类型(wifi,2G,3G,4G)
联通的3G为UMTS或HSDPA,移动和联通的2G为GPRS或EGDE,电信的2G为CDMA,电信的3G为EVDO
- getNetworkOperatorName() - 类 中的静态方法com.mazouri.tools.device.NetworkTool
-
获取网络运营商名称
中国移动、如中国联通、中国电信
- getNowTimeDate() - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取当前Date
- getNowTimeMills() - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取当前毫秒时间戳
- getNowTimeString() - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取当前时间字符串
格式为yyyy-MM-dd HH:mm:ss
- getNowTimeString(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取当前时间字符串
格式为pattern
- getPackageName(Context) - 类 中的方法com.mazouri.tools.app.AppTool
-
获取应用包名
- getPhoneStatus() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取手机状态信息
需添加权限 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
- getPhoneType() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取移动终端类型
- getScreenDensity() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
- getScreenHeight() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
- getScreenPix(Activity) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取手机大小(分辨率)
- getScreenWidth() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
- getSdCardPath() - 类 中的方法com.mazouri.tools.io.ExternalStorageTool
-
- getShareBoolean(String) - 类 中的方法com.mazouri.tools.io.SPTool
-
- getShareImageIntent(String, String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取分享图片的意图
- getShareImageIntent(String, File) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取分享图片的意图
- getShareImageIntent(String, Uri) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取分享图片的意图
- getShareInt(String) - 类 中的方法com.mazouri.tools.io.SPTool
-
- getShareInt(String, int) - 类 中的方法com.mazouri.tools.io.SPTool
-
- getShareString(String) - 类 中的方法com.mazouri.tools.io.SPTool
-
- getShareTextIntent(String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取分享文本的意图
- getShutdownIntent() - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取关机的意图
需添加权限 <uses-permission android:name="android.permission.SHUTDOWN"/>
- getSimOperatorByMnc() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取Sim卡运营商名称
中国移动、如中国联通、中国电信
- getSimOperatorName() - 类 中的静态方法com.mazouri.tools.device.DeviceTool
-
获取Sim卡运营商名称
中国移动、如中国联通、中国电信
- getStatusBarHeight(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取statusbar高度
- getTimeSpan(String, String, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取两个时间差(单位:unit)
time0和time1格式都为yyyy-MM-dd HH:mm:ss
- getTimeSpan(String, String, ConstantsTool.TimeUnit, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取两个时间差(单位:unit)
time0和time1格式都为format
- getTimeSpan(Date, Date, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取两个时间差(单位:unit)
- getTimeSpan(long, long, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取两个时间差(单位:unit)
- getTimeSpanByNow(String, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取与当前时间的差(单位:unit)
time格式为yyyy-MM-dd HH:mm:ss
- getTimeSpanByNow(String, ConstantsTool.TimeUnit, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取与当前时间的差(单位:unit)
time格式为pattern
- getTimeSpanByNow(Date, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取与当前时间的差(单位:unit)
- getTimeSpanByNow(long, ConstantsTool.TimeUnit) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取与当前时间的差(单位:unit)
- getTopActivityName(Context) - 类 中的方法com.mazouri.tools.app.AppTool
-
获取顶层activity名称
- getTopBarHeight(Activity) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取状态栏高度+标题栏(ActionBar)高度
(注意,如果没有ActionBar,那么获取的高度将和上面的是一样的,只有状态栏的高度)
- getUDID(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
获取UDID
- getUninstallAppIntent(String) - 类 中的方法com.mazouri.tools.app.IntentTool
-
获取卸载App的意图
- getVersionNameFromPackage(Context) - 类 中的方法com.mazouri.tools.app.AppTool
-
获取应用版本名称
- getWeek(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
time格式为yyyy-MM-dd HH:mm:ss
- getWeek(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
time格式为pattern
- getWeek(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
- getWeek(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
- getWeekIndex(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
注意:周日的Index才是1,周六为7
time格式为yyyy-MM-dd HH:mm:ss
- getWeekIndex(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
注意:周日的Index才是1,周六为7
time格式为pattern
- getWeekIndex(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
注意:周日的Index才是1,周六为7
- getWeekIndex(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星期
注意:周日的Index才是1,周六为7
- getWeekOfMonth(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取月份中的第几周
注意:国外周日才是新的一周的开始
time格式为yyyy-MM-dd HH:mm:ss
- getWeekOfMonth(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取月份中的第几周
注意:国外周日才是新的一周的开始
time格式为pattern
- getWeekOfMonth(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取月份中的第几周
注意:国外周日才是新的一周的开始
- getWeekOfMonth(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取月份中的第几周
注意:国外周日才是新的一周的开始
- getWeekOfYear(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取年份中的第几周
注意:国外周日才是新的一周的开始
time格式为yyyy-MM-dd HH:mm:ss
- getWeekOfYear(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取年份中的第几周
注意:国外周日才是新的一周的开始
time格式为pattern
- getWeekOfYear(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取年份中的第几周
注意:国外周日才是新的一周的开始
- getWeekOfYear(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取年份中的第几周
注意:国外周日才是新的一周的开始
- getZodiac(String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星座
time格式为yyyy-MM-dd HH:mm:ss
- getZodiac(String, String) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星座
time格式为pattern
- getZodiac(Date) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星座
- getZodiac(long) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星座
- getZodiac(int, int) - 类 中的方法com.mazouri.tools.time.TimeTool
-
获取星座
- goHome(Context) - 类 中的方法com.mazouri.tools.device.DeviceTool
-
主动回到Home,后台运行