什么是最适合这种情况的android异常?

时间:2011-03-24 21:42:37

标签: android exception

PackageManager pm = context.getPackageManager();
List<ResolveInfo> apps = 
    pm.queryIntentActivities(viewDocIntent, PackageManager.MATCH_DEFAULT_ONLY);

if (apps.size() > 0)
    context.startActivity(viewDocIntent);
else
    throw new ... SOMETHING

如果结果列表为空,您认为应该抛出哪个异常?

1 个答案:

答案 0 :(得分:2)