Bitmap bm = BitmapFactory.decodeResource(getResources(), app_icon); TaskDescription taskDesc = new TaskDescription(getString(R.string.app_name), bm, getResources().getColor(R.color.primary_600)); MainActivity.setTaskDescription(taskDesc); #Fonte - https://stackoverflow.com/a/27703150