Android 根据包名启动 Activity

Android About 157 words

方法

Intent launchIntent = getPackageManager().getLaunchIntentForPackage(appInfo.getPkgName());
if (launchIntent != null) {
    startActivity(launchIntent);
}
Views: 3,500 · Posted: 2019-04-14

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh