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

Method openFileByApp

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

打开文件 ( 指定应用 ) @param filePath 文件路径 @param packageName 应用包名 @param className Activity.class.getCanonicalName() @return true success, false fail

(
            final String filePath,
            final String packageName,
            final String className
    )

Source from the content-addressed store, hash-verified

2030 * @return {@code true} success, {@code false} fail
2031 */
2032 public static boolean openFileByApp(
2033 final String filePath,
2034 final String packageName,
2035 final String className
2036 ) {
2037 return openFileByApp(FileUtils.getFileByPath(filePath), packageName, className);
2038 }
2039
2040 /**
2041 * 打开文件 ( 指定应用 )

Callers 1

openOfficeByWPSMethod · 0.95

Calls 7

getFileByPathMethod · 0.95
isFileExistsMethod · 0.95
getUriForFileMethod · 0.95
startActivityMethod · 0.95
eTagMethod · 0.95
addFlagsMethod · 0.65
setDataMethod · 0.45

Tested by

no test coverage detected