Android Apk调用

/**
	 * 调用apk
	 */
	public void LaunchAPK(Activity act) {
		ComponentName toLaunch = new ComponentName(m_pkg, m_cls);
		Intent intent = new Intent(Intent.ACTION_MAIN);
		intent.addCategory(Intent.CATEGORY_MONKEY);
		intent.setComponent(toLaunch);
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
				| Intent.FLAG_ACTIVITY_SINGLE_TOP);
		act.startActivity(intent);
	}

你可能感兴趣的:(Android Apk调用)