I'm developing an apk where you have forms that will be sent by email. So my class for window change was like this:
ByaddingthenecessarymethodssoIcansendemailsstraightfrommyapplication,Iencounteredtheseerrors:
You just need to add your View before findViewById
Button login = (Button)view.findViewById(R.id.enviar);