This commit is contained in:
chenjuntao
2023-06-14 18:19:01 +08:00
parent af5ec74b9e
commit 1ddf9a667e
37 changed files with 457 additions and 212 deletions

View File

@ -746,9 +746,11 @@ public class PackageUtils {
}
/*
/**
* 启动应用
* 请使用 PackageLauncher.launchApp()
*/
@Deprecated
public static void launchApplicationByPackageName(Context context, String packageName) {
try {
Intent intent = context.getApplicationContext().getPackageManager().getLaunchIntentForPackage(packageName);