Advertisement
faiz_malkani

Untitled

Mar 6th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
  2.         {
  3.             TypedValue typedValue = new TypedValue();
  4.             Resources.Theme theme = getTheme();
  5.             theme.resolveAttribute(R.attr.colorPrimaryDark, typedValue, true);
  6.             int color = typedValue.data;
  7.             Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.ic_keyline_grid_recents);
  8.             ActivityManager.TaskDescription td = new ActivityManager.TaskDescription(null, bm, color);
  9.             setTaskDescription(td);
  10.             bm.recycle();
  11.  
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement