title: Is this usage for ArrayAdapter in android is right?
body: <pre><code>public void onClick(DialogInterface dialog, int which) {
  
  
  
                  setContentView (R.layout.choose);
                         lv1 = (ListView) findViewById(R.id.options);
                       String[] lv_arr= new String [] {"Book a Classified Ad","Book a Classified display Ad","Book a display Ad","Page Position Availability", "MIS", "Market Share", "Approval", "Upload Material" };
                      ArrayList&lt;String&gt; Options = new ArrayList&lt;String&gt;();  
                      Options.addAll(Arrays.asList(lv_arr));
                      listAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.choose, R.id.options);  
  
                      lv1.setAdapter( listAdapter );      
  
                                        }
             });    
  </code></pre>
  
  <p>The Error it is giving is "The constructor ArrayAdapter(new DialogInterface.OnClickListener(){}, int, int) is undefined"</p>
  
  <p>I am complete new in programing so please tell me how to change to the list view from Onclicklistner here ?</p>