1.首先,要得到程序B的包名 android
2.Intent intent=getPackageManager.getLaunchIntentForPackage(packageName); get
startActivity(intent); it
android獲取程序包名:getPackageManager.getInstalledPackages(ing flag),進行篩選 程序