So as you can see here our application is actually running on this emulator and now we need to actually
create some user interface objects in sight.
Our main activity class.
So let's actually just go inside this class and I'm going to actually declare these objects here first.
We need actually an edit text for this edit enter computer name right.
So now I get to say edit text editor X EDT computer name semicolon.
Right.
So we're going to actually initialize our objects inside our uncreate Meffert here inside this class.
We just want to declare them so the first object is EDT computer name.
The second object is EDT.
Computer power as you can see here.
So now let's actually declare this object here.
Eddie takes it is the computer power semicolon and the next object is a little computer speed.
So it takes it it the computer speed semi-colon and the next object is a computer.
So it it takes it the computer program
semicolon the next object is a screen type.
So it is text it it the screen type or it it's a computer screen type or it it the computer screen semicolon.
And the next object is it the computer keyboard.
So here I can say it it takes it it the computer keyboard semi-colon.
And then of actually first let me just make this keyboard this virtual keyboard disappeared.
And that is the next object.
Is it a computer Sibiu.
So here I can see it next.
It is the computer CPQ semi-colon.
So let's actually go inside this class.
Inside these uncreate Smurfette.
So now let's actually make this area right there.
So here inside is uncreate Meffert.
The first object that we need to initialize is this one idiotic computer name.
So here I can't say it is your computer name.
Assignment operator and then I need to recast this object to and it it takes object find view by ID
or that ID that EDT computer name.
And then at the end of our statements we need to put a semi-colon and the next object to that that Finnie
to actually initialize.
Is this one.
Is the computer power.
So here I can say it is the computer power semi-colon.
And then I need to cast this object to and it it takes object find view by ID or that ID that it is
the computer power semi-colon the next update.
Is this what it is the computer's speed.
So here I can say it is the computer speed assignment operator.
And then I need to cast this object to an edit take subject find view ID or ID that EDT computer speed
and then semicolon the next object is this one.
It is the computer RAM.
So EDT computer ram assignment operator.
And then I need to cast this object to an edit text object find view by ID or ID that idiotic computer
ram as you can see here.
And then I need to put a semicolon at the end of my statement the next object is it is the computer
screen.
So here I can say it is the computer screen.
Assignment operator and that task this object to and it it takes object so it detects the object find
view by id artist Id that it is the computer screen as you can see here and then put a semicolon at
the end of your statement the next object is it is the computer keyboard.
So it is the computer keyboard assignment operator.
And then I need to cestus object to an edit take subject find view of ID or ID dot EDT keyboard.
And as you can see here the autocomplete feature of the Android studio is going to help me to choose
this option.
It is the computer keyboard.
And then I need to put a semicolon at the end of my statement.
So now that I actually initialized these objects we need to actually to initialize this one.
It is the EDT computer Sibiu.
So here I can say 80 computer CPQ assignment operator and that I need because this object to an edit
takes object find view by ID or that Id dot EDT computer C.P you and I need to put a semicolon at the
end of my statement.
So now as you can see here if you have also disputant sent.
So let's actually just declare this button here inside this class.
So here I can say Potten PTEN send all of that data.
So this is the name of my button object.
Now as you can see here I just declare this object here.
So now let's go inside this uncreate Smurfette.
And here I can actually initialize this variable.
So here I can say Pythian send or update the assignment operator and then I need to cast this object
to our button object find view by ID or that ID that PTEN send or update data and then put a semicolon
at the end of your statement.
And now let me show you the emulator and we have actually a text view inside the horizontal scroll view.
So let's actually initialize that takes you also here.
So first let's actually declare a text here inside this class.
So takes few takes the data semicolon.
And now let's actually go inside this method and create method and here I can't say takes the data assignment
operator and that is because this object to a text view object find view by ID or artist Id that takes
the computer data and then I need to put a semi-colon at the end of our statement.
And finally we have the spot in data from server.
So let's actually declare this button here inside this class so button between get data from server
as.
So let's actually put a semicolon at the end of our statement here.
Now let's actually go inside this uncreate method and here it's actually just initialize this ridable
between get data from server assignment operator.
So now let's actually cast this object to about an object find view by ID or ID.
That's between that's between good data from server and now let's actually put a semicolon at the end
of our statement.
And now that you actually initialized the user interface components here inside our class and inside
this uncreate method.
So now that let me actually show you the web browser.
So now as you can see here this is my web browser and I actually opened this page firebase that Google
dot com and now at the top you just need to click on the spot and go to console and then it's going
to guide us to the console.
So let's actually wait a little bit here.
And now it's going to actually show us the projects that we actually create that we already created
here.
So as you can see here we actually created the app 64 and we actually connected this up to the firebase
database.
So let's actually click on this app 64 project here and then here as you can see we can actually select
our panel.
So just click on this database panel here and then you will be guided to this page and here click on
the rules tab here.
So it's actually changed the rules.
And again this is actually a delete this exclamation mark and instead put an equal operator here.
And let's also delete this exclamation mark and put an equal operator here.
And now let's actually click on this publish year in order to publish the rules as he can see he had
rules published.
And now let's actually again click on the state or tab here and now we can see the data.
So first let's actually go to our Android studio and now let's actually create a class called computer
inside our project.
So now just click on the view here at the top two windows and then click on project and then here as
you can see inside these Apfel And inside this job folder we have this package as you can see here and
inside this package we have this class main activity.
So just click on this package here right click on it new and it lets actually create another package
and just name the package model.
So this is going to be this package is going to be model and click on.
OK.
So this model package is going to hold the classes that are playing the role as their model.
So let's actually click on this model package and then click on File New and then click on Dobber class.
So for the name of our Java class just typing here computed with capital C.
So this is the name of our Java class.
And now as you can see here it says visibility Puplick and modifiers.
Okay.
And then click on OK here.
So we have this computer class.
So now let's actually doubleclick on this computer that job I have here at the top in order to make
this idea why they're so inside these class is actually create some instance variables.