プログラムの結果をダイアログボックスのtextViewに設定しようとすると、アプリが強制終了しました。テキストビューを持つxmlをリンクしてダイアログボックスを作成しました。更新しようとしたのはこのテキストビューです。
AlertDialog.Builder alert = new AlertDialog.Builder(this);
LayoutInflater factory = LayoutInflater.from(this);
resultOne=(TextView)findViewById(R.id.resultOne); //resultone is a textview in xml dialog
resultOne.setText("hello"); //this code is making the app close
final View textEntryView = factory.inflate(R.layout.dialog, null);
alert.setView(textEntryView);
alert.show();