title: Problem with image in an AlertDialog with the ListView [Android]
body: <p>i have a problem trying to show an image in an AlertDialog with a ListView, here the code:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
  
  ListView modeList = new ListView(this);
  stringArray = new String[1];
  
  **stringArray[0] = new String(getString( R.string.facebook),getImg( R.drawable.icon ));**
  
  ArrayAdapter&lt;String&gt; modeAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, android.R.id.text1, stringArray);
  modeList.setAdapter(modeAdapter);
  
  builder.setTitle("Share");
  builder.setIcon(R.drawable.icon);
  builder.setItems(stringArray, new DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int item) {
                      //Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();
                  }
              });
  
  AlertDialog alert = builder.create();
  alert.show();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>private Drawable getImg( int res )
          {
              Drawable img = getResources().getDrawable( res );
              img.setBounds( 0, 0, 48, 48 );
              return img;
          }
  </code></pre>
  
  <p>and the error says me: "The constructor String(String,Drawable) is undefined"</p>
  
  <p>I would like, to show an image custom and a text in an AlertDialog with a ListView. Thanks.</p>