cant see adpter gui
<p>I created an adpter that set some message text to textView and a simple button,
but still cant see the gui of that adpter.
I don't have any error's but still cant see the adpter just the screen before that.</p>

<p>the code of the adpter</p>

<pre><code>public class messageDisplayAdapter extends ArrayAdapter {

public Context mContext;
private String message;
public AlertDialog alertDialog;
private int id;

public messageDisplayAdapter(Context context, int textViewResourceId, String message) {
    super(context, textViewResourceId);
    mContext = context;
    id = textViewResourceId;
    this.message=message;
}

public View getView(int position, View convertView, ViewGroup parent) {
    View row = convertView;
    if (row == null) {
     LayoutInflater inflater =LayoutInflater.from(this.mContext);
     row = inflater.inflate(R.layout.message, parent, false);
    }
   // final int itemPosition = position;
    TextView Item = (TextView) row.findViewById(R.id.textView );
    Button btn = (Button) row.findViewById(R.id.ButtonOk);
    btn.setOnClickListener( new View.OnClickListener() {
    public void onClick(View v) {
  // Toast.makeText(getApplicationContext(), "Toast from button"+                        //Colors[itemPosition], Toast.LENGTH_SHORT).show();    
  }
 });
    return row;

}
</code></pre>

<p>and the class that show the adpter</p>

<pre><code> protected void onPostExecute(String result) {
    try {
        Dialog.dismiss();
        Intent intent = new Intent(this.context, Class.forName(this.newActivity));


        context.startActivity(intent);
        //finish();}

    } catch (ClassNotFoundException ex) {
      /*  messageDisplayAdapter messageDisplayAdapter = new messageDisplayAdapter(this.context, R.layout.message, "error on loading");
        messageDisplayAdapter.showMessage();
    */

     ListView lv =new ListView(this.context); 
    lv.setTextFilterEnabled(true);
    messageDisplayAdapter  listAdapter= new messageDisplayAdapter(this.context,R.layout.message,"error on loading");
   // listAdpter.setListAdapter(listAdapter); // on test
    lv.setAdapter(listAdapter); // on test

    }

}
</code></pre>

<p>thanks for help!</p>
