Skip to content

Instantly share code, notes, and snippets.

@Fast0n
Last active April 27, 2018 08:58
Show Gist options
  • Select an option

  • Save Fast0n/6b5412457e663deb05b2e671c2eb7ab2 to your computer and use it in GitHub Desktop.

Select an option

Save Fast0n/6b5412457e663deb05b2e671c2eb7ab2 to your computer and use it in GitHub Desktop.

Revisions

  1. Massimiliano Montaleone renamed this gist Apr 27, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Massimiliano Montaleone created this gist Apr 27, 2018.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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