Intent intent = new Intent();ComponentName cn = new ComponentName(param1, param2);//param1:Activity所在应用的包名 param2:Activity的包名+类名intent.setComponent(cn);startActivity(intent);//打开ActivitystartService(intent);//打开Service