activity 根据包名和应用名启动应用程序

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 根据包名和应用名启动应用程序)