-
public class AppUtils
-
-
Field Summary
Fields Modifier and Type Field Description private final StringVERSION_CODEprivate final StringVERSION_NAMEprivate final static BooleanisFastDoubleClickpublic final static AppUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static LonggetVersionCode(Context context)获取版本code final static LonggetVersionCode(Context context, String packageName)获取版本code final static StringgetVersionName(Context context)获取版本名称 final static StringgetVersionName(Context context, String packageName)获取版本名称 final static StringgetAppName(Context context)获取应用程序名称 final static Map<String, String>getUserApps(Context context)final static Map<String, String>getLauncherApp(Context context)获取有icon的app final BooleanisInstall(String pkgName)final StringgetVERSION_CODE()缓存的version code 的key值 final StringgetVERSION_NAME()缓存的version name 的key值 final static BooleangetIsFastDoubleClick()-
-
Method Detail
-
getVersionCode
final static Long getVersionCode(Context context)
获取版本code
-
getVersionCode
final static Long getVersionCode(Context context, String packageName)
获取版本code
-
getVersionName
final static String getVersionName(Context context)
获取版本名称
-
getVersionName
final static String getVersionName(Context context, String packageName)
获取版本名称
-
getAppName
final static String getAppName(Context context)
获取应用程序名称
-
getUserApps
final static Map<String, String> getUserApps(Context context)
获取当前用户安装的App
-
getLauncherApp
final static Map<String, String> getLauncherApp(Context context)
获取有icon的app
-
getVERSION_CODE
final String getVERSION_CODE()
缓存的version code 的key值
-
getVERSION_NAME
final String getVERSION_NAME()
缓存的version name 的key值
-
getIsFastDoubleClick
final static Boolean getIsFastDoubleClick()
-
-
-
-