Java Code Examples for android.content.pm.ApplicationInfo#loadLogo()
The following examples show how to use
android.content.pm.ApplicationInfo#loadLogo() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Utility11.java From CSipSimple with GNU General Public License v3.0 | 6 votes |
@Override public Drawable getActivityLogo(Context context) { Drawable mLogo = null; ApplicationInfo appInfo = context.getApplicationInfo(); PackageManager pm = context.getPackageManager(); if (context instanceof Activity) { try { mLogo = pm.getActivityLogo(((Activity) context).getComponentName()); } catch (NameNotFoundException e) { Log.e("Utility", "Activity component name not found!", e); } } if (mLogo == null) { mLogo = appInfo.loadLogo(pm); } return mLogo; }
Example 2
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 3
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 4
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 5
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 6
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 7
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 8
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 9
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 10
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 11
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 12
Source File: ApplicationPackageManager.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 13
Source File: DelegateApplicationPackageManager.java From BtPlayer with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }
Example 14
Source File: DelegateApplicationPackageManager.java From AndroidDownload with Apache License 2.0 | 4 votes |
@Override public Drawable getApplicationLogo(ApplicationInfo info) { return info.loadLogo(this); }