That was the reason that we needed to actually cast this object to our putten object in order to let
the compiler know that we are actually faring.
But an object.
OK not a view object or a text you object.
OK.
So here I want to actually specify that whenever we actually click on the spot in here something happens.
OK.
So I need to actually let this button know.
So I want to actually let this button know that when ever a user clicked on this button it's going to
actually respond by doing something.
OK.
So inside the main activity that Java I just need to refer to the name of this button here.
That said unclick listener.
OK here I am actually setting this object this button to actually listen to the clicks that we actually
make on the spot in here.
OK.
So whenever I click on this button it's going to actually listen to that click OK.
So between go that certain click listener knew OK view that unclick listener.
OK so as you can see here it created these lines of code for us.
OK.
So here we are specifying that when ever a button is clicked.
The lines of code inside these unclick is going to be executed.
OK I'll talk more about these lines of code later.
OK.
But for now you just need to know that here are these lines of code.
We are actually specifying that this button is going to listen to the clicks that we make to the clicks
that a user make on that button.
OK.
So inside the Smurfette I can just typing t XTi resolved that said text.
And that inside Apprentice's I can just put typing something.
Ok for example button clicked OK.
So now let's actually run our project and see what happens.
OK.
So as you can see here now our app is running on this emulator here.
And as you can see here this is the result takes you here.
OK.
So now if you just click on the school button here let's see what happens.
As you can see the text of this text is changed.
Button clicked OK and now for example I can actually change this value to another value or whatever
value that I want in the later tutorials.
I'll talk more about our listeners and other materials related to this pattern here.
OK.
So I think it's enough for this application.
And if you have any questions please post the discussion in the course.
I'll do my best to answer your questions.
And thanks very much for watching and I'll see you in the next tutorial.