Context getAppContext(final String packageName) { Context context = null; try { context = getHostContext().createPackageContext(packageName, Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return context; }
getNotificationFixer().fixIconImage(appContext.getResources(), notification.bigContentView, false, notification); notification.icon = getHostContext().getApplicationInfo().icon; notification.icon = getHostContext().getApplicationInfo().icon;
Context getAppContext(final String packageName) { Context context = null; try { context = getHostContext().createPackageContext(packageName, Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return context; }
Context getAppContext(final String packageName) { Context context = null; try { context = getHostContext().createPackageContext(packageName, Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } return context; }
getNotificationFixer().fixIconImage(appContext.getResources(), notification.bigContentView, false, notification); notification.icon = getHostContext().getApplicationInfo().icon; notification.icon = getHostContext().getApplicationInfo().icon;
getNotificationFixer().fixIconImage(appContext.getResources(), notification.bigContentView, false, notification); notification.icon = getHostContext().getApplicationInfo().icon; notification.icon = getHostContext().getApplicationInfo().icon;