AlertDialog and soft keyboard
<p>Hi guys I'm developing an android application.I'm using the alertDialog class.Where i have a custom listview and 2 buttons.In my custom listview i have an EditText Field.But when the dialog pops and i touch the EditText while the cursor starts flashing in the Textbox the softKeyboard doesn't appear.Is it because of the alertdialog?
Thank you for your time.</p>

<pre><code>public class ProgressReport extends ListActivity {

private ResultSet receivedData;
private StudentProgressAdapter ca;
private Button btnRtn;
ArrayList&lt;String&gt; content =new ArrayList&lt;String&gt;();
ArrayList&lt;String&gt; subContent = new ArrayList&lt;String&gt;();
AlertDialog dialog ;


 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);     
        setTheme(android.R.style.Theme_Holo_Light);         
        setContentView(R.layout.examslayout);



        for(int i =0;i&lt;20;i++)
          content.add("ELEMENTARY: "+i);

          for(int i =0;i&lt;20;i++)
              subContent.add("ΒΑΣΙΚΗ ΚΑΤΗΓΟΡΙΑ");


            AlertDialog.Builder builder = new AlertDialog.Builder(this);
            builder.setTitle("Student Stats").setPositiveButton("Yes",new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog,int id) {
                    // if this button is clicked, close
                    // current activity
                    //MainActivity.this.finish();
                }
              })
            .setNegativeButton("No",new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog,int id) {
                    // if this button is clicked, just close
                    // the dialog box and do nothing
                    dialog.cancel();
                }
            });;

            ListView modeList = new ListView(this);

            modeList.setAdapter(new ProgressReportAdapter2(this, new int[]{R.layout.arrowlistview}, new int[]{R.id.textView1,R.id.textView2},content,20,subContent));

            builder.setView(modeList);

            dialog = builder.create();
            dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE|WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);

        Intent intent = getIntent();      
        receivedData =  (ResultSet) intent.getSerializableExtra("SentData");

        ArrayList&lt;String&gt; content = new ArrayList&lt;String&gt;(MainPagerActivity.receivedData.getStudents().length);
        for (int i=0; i &lt;receivedData.getStudents().length; i++)
              content.add(receivedData.getStudents()[i].getProperty(3).toString()+" "+receivedData.getStudents()[i].getProperty(2).toString());

        ca= new StudentProgressAdapter(this, new int[]{R.layout.stdprgrlistview}, new int[]{R.id.textView1}, content,content.size());
        setListAdapter(ca); 

        btnRtn= (Button) findViewById(R.id.btn);
        btnRtn.setOnClickListener(new OnClickListener() {            
            public void onClick(View v) {     

                finish();

            }
        });


    }

    @Override
    public void onListItemClick(ListView l, View v, int position, long id) {    


        dialog.show();



    }
</code></pre>
