android: got error on trying work with spinner
<p>i try to work with spinner on dialog</p>

<pre><code>public class data extends Dialog {
.
.
.
String[] iType = { "AA","BB","CC" };
public Spinner TypeSelect;

public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.data);
     setTitle("My Heder");

     TypeSelect = (Spinner) findViewById(R.id.spinner2);
     ArrayAdapter&lt;String&gt; TypeAdapter = new ArrayAdapter&lt;String&gt;(this,
       android.R.layout.simple_spinner_item,iType);
        TypeSelect.setAdapter(TypeAdapter);
</code></pre>

<p>but i got error on this line:</p>

<pre><code> ArrayAdapter&lt;String&gt; TypeAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item,iType);
</code></pre>

<p>the error:</p>

<pre><code>The constructor ArrayAdapter&lt;String&gt;(data, int, String[]) is undefined
</code></pre>

<p>what can be the problem ?</p>
