Android IDE (AIDE) Support Forum

View IDs: Hello friends, where is my wrong?

How can I solve this?

Copy-paste textView.setText(""); into onCreate function

The problem was not solved. Please tell where is my wrong.

Variable textView in function onNoButtonClick(View view) is not defined (for more check local variables and global for extra help). You can see that AIDE shows red underline there.

To fix this you have kinda a few options:

  1. remove (comment with //) underlined command.
  2. Make textView variable global by moving textView outside of onCreate class:

onCreate(Bundle bundle){
TextView textView = (TextView)…
}

To

private TextView textView;
onCreate(Bundle bundle){
textView = (TextView)…
}

Thank you very much for your reply…

But the app has crashed and doesn’t work.

Sorry to disturb you again and again.

I have deleted two veritable from button method. Then the problem was solved. Thank you very much for your help.