List of usage examples for android.content.pm PackageManager getUserBadgedDrawableForDensity
public abstract Drawable getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, Rect badgeLocation, int badgeDensity);
From source file:Main.java
/** * @see android.content.pm.PackageManager#getUserBadgedDrawableForDensity(Drawable drawable, * UserHandle user, Rect badgeLocation, int badgeDensity). *///from w ww . j ava 2s . c om public static Drawable getUserBadgedDrawableForDensity(Context context, Drawable drawable, Rect badgeLocation, int density) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { PackageManager packageManager = context.getPackageManager(); return packageManager.getUserBadgedDrawableForDensity(drawable, Process.myUserHandle(), badgeLocation, density); } return drawable; }