title: AlertDialog setButton was deprecated
body: <p>I use this code in my Eclipse Android project</p>
  <pre><code>alertDialog.setButton(&quot;OK&quot;, new DialogInterface.OnClickListener() {
      
          @Override
          public void onClick(DialogInterface dialog, int which) {
  
          }
  });
  </code></pre>
  <p>But Eclipse is saying:</p>
  <blockquote>
  <p>This method was deprecated in API level 3. Use setButton(int,
  CharSequence, android.content.DialogInterface.OnClickListener) with
  BUTTON_POSITIVE</p>
  </blockquote>
  <h1>UPDATE AFTER 5 YEARS</h1>
  <p>This was my first step on entering a real programming adventure. It was like, <strong><em>oh I know how to do html website and this must be easy to code -native programming- so lets jump into it without reading any document.</em></strong> This is my first question on this awesome community which is a terrible question. One big suggestion that I can give to any beginner programmer which is; have some idea, dig some document and read open source about <strong>how others made</strong> before you jump into a new adventure. Patiently read the error that you encounter and try to realise what the <strong>real</strong> problem is. Thus you don't ask unnecessary question.</p>