title: How do I use Color.rgb?
body: <p>I was following a tutorial, and I was experimenting with some pieces of code, and found that my Application kept crashing when I input "aditya". I know I'm using <code>Color.rgb</code> wrong, but I don't know how.</p>
  
  <pre><code>chkCmd.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              String check = input.getText().toString();
              display.setText(check);
              f (check.equals("left")) {
                  display.setGravity(Gravity.LEFT);
              } else if (check.equals("center")) {
                  display.setGravity(Gravity.CENTER);
              } else if (check.equals("right")) {
                  display.setGravity(Gravity.RIGHT);
              } **else if (check.equals("aditya")) {
                  display.setText(Color.rgb(184, 134, 011));**
  </code></pre>