/**
* 调用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);
}
转载于:https://my.oschina.net/yuhanxun/blog/127170