转载请注明出处:http://blog.csdn.net/droyon/article/details/39933677
Intent intent = new Intent(Intent.ACTION_APP_ERROR); intent.setPackage(receiverPackage); ResolveInfo info = pm.resolveActivity(intent, 0); if (info == null || info.activityInfo == null) { return null; } return new ComponentName(receiverPackage, info.activityInfo.name);
原文:http://www.cnblogs.com/mengfanrong/p/5118839.html