编程语言
首页 > 编程语言> > android 启动其他程序

android 启动其他程序

作者:互联网

Intent intent = new Intent();
intent.setClassName("com.linxcool","com.linxcool.PlaneActivity");
startActivity(intent);

Intent intent = new Intent();
ComponentName comp = new ComponentName("com.linxcool","com.linxcool.PanelActivity");
intent.setComponent(comp);
intent.setAction("android.intent.action.MAIN");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

context.startActivity(context.getPackageManager().getLaunchIntentForPackage(APP_PACKAGE_NAME));

标签:startActivity,启动,程序,linxcool,intent,new,Intent,android,com
来源: https://www.cnblogs.com/mtgold/p/16339867.html