检测android某个intent是否有效

在须要用Intent打开文件时,若是intent无效会发生force close,以下代码能够检测intent是否有效,无效则弹出toast提示java /** * Indicates whether the specified action can be used as an intent. This * method queries the package manager for inst
相关文章
相关标签/搜索