title: Getting dialog when click on button
body: <p>Can anybody tell me, how to get a dialog popup (<code>ColorPickerDialog</code>)  when i click on Button.</p>
  
  <p>Code from comments:</p>
  
  <pre><code>  Button color = (Button)findViewById(R.id.color_button);
      color.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              new ColorPickerDialog(getBaseContext(), mListener ,a ).show();
              System.out.println("button pressed");
          }
      });
  
     }),initialColor);
     dlg.show();
  </code></pre>
  
  <p>}
  });</p>
  
  <p>I want select color , i done with spinner by using names. but i want more color's for that i have color picker dialog when i press on that button i want it will popup see in image: <a href="http://dl.dropbox.com/u/38493970/device-2011-08-23-134910.png" rel="nofollow">http://dl.dropbox.com/u/38493970/device-2011-08-23-134910.png</a></p>