Android 根据包名启动 Activity
Android 大约 157 字方法
Intent launchIntent = getPackageManager().getLaunchIntentForPackage(appInfo.getPkgName());
if (launchIntent != null) {
startActivity(launchIntent);
}
阅读 2924 · 发布于 2019-04-14
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Linux -bash: locate: command not found阅读 784
-
软考-系统架构设计师:电子数据交换(EDI)阅读 2283
-
filebeat read: connection reset by peer阅读 3266
-
Elasticsearch 使用查询表达式搜索阅读 2149
-
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction阅读 2183
-
Spring 事务原理阅读 1133
-
JavaScript WebSocket 为什么不提供 ping 和 pong阅读 3486
-
面试题:HTTP2.0 与 HTTP1.1 的区别阅读 3284
-
设计模式之工厂模式阅读 1759
-
Spring Boot JSON 将 Long 类型序列化为 String 类型阅读 168