i want to display a dialog in my android application where certain TextViews in the layout need to have content set during runtime.
while showing the dialog itself is no problem at all, accessing the TextViews via TextView.setText(String) crashes the application.
this is what i got so far:
dialog = new Dialog(this);
dialog.setContentView(R.layout.dialog);
dialog.setTitle("my dialog");
dialog.show();
TextView tv;
tv = (TextView) findViewById(R.id.title);
tv.setText("bkjadsjbk");
while this is working just fine without the last 3 lines, running that code WITH the TextView-stuff crashes my application.
is there any way to get this right?