title: DialogInterface vs View OnClickListeners
body: <p>Why can't I have both imports for <code>OnClickListener</code>. I have already <code>import android.view.View.OnClickListener;</code> but when I want to add <code>import android.content.DialogInterface.OnClickListener;</code> it gives me an error:</p>
  
  <p><em>The import android.content.DialogInterface.OnClickListener collides with another import statement</em></p>
  
  <p>This is the reason why, for example, I have to write the full namespace of the <code>OnClickListener</code> when I need to implement a <code>DialogInterface</code> <code>OnClickListener</code>( i.e.</p>
  
  <pre><code>.setPositiveButton(R.string.ok, new android.content.DialogInterface.OnClickListener() {
  
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
  
                  }
              })
  </code></pre>
  
  <p>Can anyone explain me this? I apologize if this is a stupid question.</p>