Lines Matching refs:Resources
23 import android.content.res.Resources;
49 Resources resources = packageContext.getResources();
50 return getResourceUri(resources, packageContext.getPackageName(), res);
51 } catch (Resources.NotFoundException e) {
59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo);
60 return getResourceUri(resources, appInfo.packageName, res);
62 Log.e(TAG, "Resources not found for " + appInfo.packageName);
64 } catch (Resources.NotFoundException e) {
70 private static Uri getResourceUri(Resources resources, String appPkg, int res)
71 throws Resources.NotFoundException {
72 String resPkg = resources.getResourcePackageName(res);
73 String type = resources.getResourceTypeName(res);
74 String name = resources.getResourceEntryName(res);