title: How to put a List View in an Alert Dialog when i click an banner?
body: <p>I am newbie, when I click a banner, i need an <code>AlertDialog</code> with a <code>ListView</code> with 2 choices spanish and english  to appear. And when I click one I need go to a website, and the option to back or cancel of dialog.</p>
  
  <p>If this help, all that I have (is not with <code>ListView</code>)</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      final AdView adView = (AdView) findViewById(R.id.adView);
      adView.loadAd(new AdRequest());
  
       // Internet Connection detector
      ConnectionDetector cd;
  
      // Alert Dialog Manager
      AlertDialogManager alert = new AlertDialogManager();
  
      final ImageView Banner = (ImageView) findViewById(R.id.imageView2);
      Banner.setOnClickListener(new OnClickListener(){
  
  
  
  
          @Override
          public void onClick(View arg0) {
  
              // custom dialog
              final Dialog dialog = new Dialog(context);
              dialog.setContentView(R.layout.custom);
              dialog.setTitle("Title...");
  
              // set the custom dialog components - text, image and button
              TextView text = (TextView) dialog.findViewById(R.id.text);
              text.setText("Android custom dialog example!");
              ImageView image = (ImageView) dialog.findViewById(R.id.image);
              image.setImageResource(R.drawable.ic_launcher);
  
              Button dialogButton = (Button) dialog.findViewById(R.id.dialogButtonOK);
              // if button is clicked, close the custom dialog
              dialogButton.setOnClickListener(new OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      dialog.dismiss();
                  }
              });
  
              dialog.show();
            }
          });
      }
  }
  
  
  
              //al apretar click en el banner abre el browser con la pág: las.leagueoflegends.com
  
              //Intent browserIntent = 
              //  new Intent(Intent.ACTION_VIEW, 
                  //  Uri.parse("http://www.facebook.com"));
          //   startActivity(browserIntent);
          }});
  </code></pre>
  
  <p>PD: i tried different codes from people but i get different errors D:</p>