Context context = mContext.createPackageContext(包名, Context.CONTEXT_IGNORE_SECURITY); //mContext为当前应用的context
res = context.getResources();
res.getIdentifier("字串资源名称","string",pkgName);
其他资源获取方式类似。
Context context = mContext.createPackageContext(包名, Context.CONTEXT_IGNORE_SECURITY); //mContext为当前应用的context
res = context.getResources();
res.getIdentifier("字串资源名称","string",pkgName);
其他资源获取方式类似。