public ActivityInfo resolveActivityInfo(Intent intent, int flags) throws RemoteException {
try {
if (this.mApkManager == null) {
return null;
}
if (intent.getComponent() != null) {
return this.mApkManager.getActivityInfo(intent.getComponent(), flags);
}
ResolveInfo resolveInfo = this.mApkManager.resolveIntent(intent, intent.resolveTypeIfNeeded(this.mHostContext.getContentResolver()), flags);
if (resolveInfo == null || resolveInfo.activityInfo == null) {
return null;
}
return resolveInfo.activityInfo;
} catch (RemoteException e) {
JLog.log("wuxinrong", "获取ActivityInfo 失败 e=" + e.getMessage());
throw e;
} catch (Exception e2) {
JLog.log("wuxinrong", "获取ActivityInfo 失败 e=" + e2.getMessage());
return null;
}
}
ApkManager.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:letv
作者:
评论列表
文章目录