final ComponentName cn = new ComponentName(app.appname.substring(0, "com.eshore.efilm", "com.eshore.efilm.Efilm"); Intent intent = new Intent(); intent.setComponent(cn); intent .setAction("android.intent.action.VIEW"); startActivity(intent);
activity 根据包名和应用名启动应用程序
最新推荐文章于 2021-05-26 12:36:13 发布
本文介绍了一种通过Intent启动Android应用中特定组件的方法。具体步骤包括创建Intent实例、设置要启动的组件名称,并指定ACTION_VIEW动作以发起查看操作。
156

被折叠的 条评论
为什么被折叠?



