Can i use adapter for dialogs?
<p>I have some data that i want to show them in different dialogs with the same layout.Can i use an adapter like simpleCursorAdapter?</p>

<pre><code>entry.open();
            Cursor cursor = entry.getData();
            startManagingCursor(cursor);
            Dialog dialog = new Dialog(this);

            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.agonessingle);
            dialog.setCancelable(true);         

             String description2 = DBHelper.DESCRIPTION;
                String skord2 = DBHelper.SKOR;
                String goala2 = DBHelper.GOALA;
                String goalb2 = DBHelper.GOALB;
                String title2 = DBHelper.TITLE;
            String[] columns = new String[] { DBHelper.TITLE,
                    DBHelper.DESCRIPTION, DBHelper.SKOR, DBHelper.GOALA,
                DBHelper.GOALB };

            // THE XML DEFINED VIEWS WHICH THE DATA WILL BE BOUND TO

            int[] to = new int[] { R.id.firstdialog, R.id.TextView1,
                    R.id.TextView2, R.id.TextView3, R.id.TextView4 };

            SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this,
                R.layout.agonessingle, cursor, columns, to);
</code></pre>

<p>i was thinking something like this but i dont know how to set my adapter..</p>
