首页
IT
登录
6mi
u
盘
搜
搜 索
IT
android应用程序中启动另一个应用程序
android应用程序中启动另一个应用程序
xiaoxiao
2021-03-25
59
启动非系统应用程序:
前名一个参数是应用程序的包名,后一个是这个应用程序的主Activity名
Intent intent=
new
Intent();
intent.setComponent(
new
ComponentName(
"com.zyss.mxhb"
,
"
com.zyss.mxhb.SplashActivity
"
));
startActivity(intent);
启动系统自带的应用程序(日历);
Intent intent=
new
Intent();
intent.setComponent(
new
ComponentName(
"com.android.calendar"
,
"com.android.calendar.LaunchActivity"
));
startActivity(intent);
转载请注明原文地址: https://ju.6miu.com/read-36817.html
技术
最新回复
(
0
)