MCPcopy Create free account
hub / github.com/afkT/DevUtils / getPackageName

Method getPackageName

lib/DevApp/src/main/java/dev/utils/app/AppUtils.java:793–800  ·  view source on GitHub ↗

获取 APP 包名 @return APP 包名

()

Source from the content-addressed store, hash-verified

791 * @return APP 包名
792 */
793 public static String getPackageName() {
794 try {
795 return DevUtils.getContext().getPackageName();
796 } catch (Exception e) {
797 LogPrintUtils.eTag(TAG, e, "getPackageName");
798 }
799 return null;
800 }
801
802 /**
803 * 获取 APP 图标

Calls 2

getContextMethod · 0.95
eTagMethod · 0.95

Tested by

no test coverage detected