set the color of the toolbar dynamically : 
I get color using intent. I need to set this color dynamically in the toolbar. The Internet has found only such a solution, but it does not work. Error `java.lang.IllegalArgumentException: Unknown color`


      private long randomAndroidColor;
      randomAndroidColor = getIntent().getLongExtra(EXTRA_COLOR, 0L);
        getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(String.valueOf(randomAndroidColor))));