So now let me show you an important point here.
So now this actually open the browser here and now.
Let me actually just delete this value here.
Just click on the list delete button here and then present it here.
Here and now I want to actually just create another child.
So just click on these ADD child button here.
This plus button and for the name or you can assign the value for example name right name.
And here I can for the value I can assign a value.
For example mortars right and then I can add this value.
So here we have this key and here we have this value.
So let's actually create an order child.
So just click on the plus button here at child.
And again the name is going to be a name for the key name and the value.
We have another thing for example I can say another name.
Right.
And then here just click on this add button here and let's see what happens.
As you can see here we can't actually create to a child's with the same key be the same key name we
have.
You can only have munchy right.
And the key is name and it actually just updated the value and other name.
So what happened here.
So how we can solve this problem.
So for example we may have lots of boxers and those boxers have our key name.
Right.
Those boxers have names.
And we need to actually provide a value for the name of each boxer and here as you can see we can only
create our name or key with one name.
Can actually create two keys with the same name.
So in order to solve this problem we can actually just let me actually did it.
Does she value here just delete it.
And then press delete button here and then it's going to delete it.
Right.
And here I can get you to click on.
Plus spot and he had a child and he can't say for example box ID.
Right.
And now as you can see here I can see that plus I can I don't want to assign a value here to this box
at did because in that case I cannot actually create a cheat roll for this box or ID here.
So I want to actually just create a category list and this category is box that ID.
So because I want to create a category I must not actually provide a value for this category.
So here I just need to click on this child here.
Right.
And now as you can see for the name I can assign a value for example name and the value is going to
be for example of value right.
And then I can actually add this child here.
So Boxer ID name value.
So now as you can see I can actually create another child.
So another child.
So the idea is going to be for example one two three four.
And because this is going to be a category I don't want to specify a value here.
And then I just need to create another child here.
So just click on this child here and now again I can actually create a name and then I can create a
value for this name and then click on it.
So as you can see here in this way when we actually create another category inside that category we
have a name and a value.
And that's why we actually provide a box of ID inside the user interface so that the user can actually
provide a unique ID.
And then we can actually create lots of boxes with lots of names and other attributes.
Right.
So as you can see now we have two kids with the same name but in two different categories.
But if you wanted to actually just create two keys with the same name without creating these categories
or in that case we do we are not allowed to do that and we may have problems.
Right.
So let's go back to what Android studio.
First of all it's actually it is values here.
And then delete this here delete.
And now as you can see here we have only this instance right.
So let's actually to go back to our Android studio and now inside is unclear.
Meffert here.
So now I'm going to paste in a line of code here and then I'm going to explain to you what's going on
here.
So as you can see here this is the line of code that I pasted here inside this unclear method.
So let's look at this line of code here.
Let's see what's going on here.
So as you can see I actually am referring to this minor offense here which is of type database reference
and we are actually specifying our location in order to say to actually write our data in the database.
So my dear child.
So now let me open the web browser here.
As you can see I told you that we can actually create 2000 here.
So if you actually click on this plus button here at child I can create our children here for this parent.
Right.
So here when I say my if that child is the same thing that I did here when I say our child is the same
thing here myself.
So my that is referring to this instance right.
You want to write our data here and then we need to actually specify a child for this parent.
And here as you can see inside these Apprentice's of this child as you can see here we need to specify
the name the value of the key.
Right.
So here we need to specify the key.
And as you can see here name value right here we need to specify the name.
So I actually fed to the name of this ADT box that Id write it in the box at 80 that it takes that to
strength.
So here the name is going to be this ID right and here.
And then I to the card again to chide because I want to actually create a category beatboxer ID.
I don't want to just actually provide a value for this box or ID.
So as you can see here might have a child.
And inside the Prentice's of this child I need to specify the key.
So I said that it is epoxied ID that takes that twisting.
So this is going to be the key.
And are you going to create A.F. child inside that child.
So I want to create an automatic DVD box and ID and then.
So for example he had the box that ID is 1 2 3 4 right.
Because I went over to create a category here.
I must not provide a value for this value right.
So here because I want to create children for this category I just need to click on plus here.
Right.
So now we have this chat go to here as you can see.
Name one two three four.
Right.
And now as you can see here this is our category.
And now I can actually create children for this ID.
Right.
So here I can't say that.
Let me show you the Android studio.
So he might have that child it the box that ID that takes that to stream.
So this is actually going to be a category disvalue.
Right.
Let me show you the web browser.
And now again I called child on this child here.
So because I want to create another child for this child so tight with the key name.
And then as you can see here alcaldes set value on this child.
Right.
So now let me actually just delete these values here and now let me open the Android studio.
So what sets value.
EDT Buxar name that takes the history.
So let me run the project and then it will make sense.
So here let me opened a web browser and now that application is actually running on the simulator here
let's actually provide a box that ID here.
So the box idea you should actually ask the user to provide a unique ID.
You can ask them to actually provide his or her mobile phone number.
So here I'm going to provide a value one two three four five.
Right.
And then I can get you to provide the proximate name.
So the box name can be for example a box or a right or can I say that.
So this is this is the name of the boxer.
And then I can actually click on it and send data to set it right.
So because we only actually provided this line of code here in order to just create actually a box of
ID and then inside that category box that idea we just need to create a tight name and then we are setting
the value of that a name which is a right.
So now let's actually click on disputant send data to server and now let's actually open the browser
as you can see here.
We have actually a track record with this ID.
One two three four five.
Right.
So this is the key readout value.
And then as you can see inside these categories we have name name of the boxer.
And as you can see that excuse me the value is a.
Right.
So let's actually open the Android studio so I can get you to say the name is for example box her name
and let's actually add up application again.
Let's open the web browser and the emulator.
So here I can say that the name is another name for example.
For example A.
Right.
And then let's actually just click on the send data to server and as you can see here we have another
cheap box so name the devaluate a and as you can see here we have this name here OK because we change
the key here.
We can actually create two keys with different names.
So let's actually delete this shit here.
Delete.
Let's actually open our emulator again.
Let's change this value back name to BBB and then click on send data to a server.
And now it's going to update the value of this box only.
Right because we can only have one key one key inside our are critical to here right.
We can have two keys with the same name.
Inside our category.
So this is the idea.
One two three four five bucks.
Name this value right.
And let's actually change the ID to another value for example 10 10 10 and let's actually click click
on send that data to server as you can see it's going to create another category with this ID and it
inside that category we have boxer named BBB.
Right.
So hopefully that makes sense.
Let's actually go inside and write studio.
And again I can't say my ref.
But child so the child is going to be.
Again we need to actually specify the actually ID because we are going to put our values inside the
ID right.
We need to actually prove or create a category.
So ADT Buxar ID that get fixed that constraint.
Right.
And then as you can see here we need to create another child for this ID right because this ID here
is actually a category not a key value or category only only we need to provide a key.
So this is the key.
This is the value of the key.
We dont want to provide an a value for this key we just want to provide the key because inside that
we we are we are going to actually create some children so that child again that child and now I need
to specify the key of that child so that she of that child could be actually a boxer punch power.
Right.
And then I can say that.
So as you can see here I created a new line here so that you can see these values right.
I could say just hear that and then I could actually write my code here but I want to put it here and
in an evil line so that you can see whats going on here.
That said value.
And as you can see here this sets volume if it needs an object right.
So here I can see EDT Boxer punch power dot get text dot to a string as you can see here.
I just want to put a semicolon at the end of my statement.
So when the user provides a value for that detail which is going to be an integer value is going to
actually convert that value to a string value and then we can actually send those data to the server.
So let's actually run our project now.
And now let's actually open a web browser and then the emulator here.
So enter our unique IDs with a unique ID could be for example 1 2 3 4 5 right as you can see I put the
same ID that we have here.
Right.
And the box name could be for example.
And the punch power here and say 1000 or 10000 or 100000 right and that I can't make this keyboard disappear.
And then I can click on this send data to server and here as you can see it is updated this that the
value of this Buxar name and actually created another child for this category which is this 1 1 2 3
4 5 bucks punch power disvalue 100000.
Right.
And now I can actually create another IED for example the idea is one right.
And then I can just say that the Paxo name is a ABC and a boxer punch power is for example 200.
Right.
And then I can make this keyboard disappear.
And then you can send data to a server as you can see it's going to create another category here.
Right.
And if I open this one here as you can see we have these children inside this key that the ID is one
box and ABC box or punch power is 200.
So hopefully that makes sense.
So let's go back into our Android studio and let's put the other lines of code here.
Might have that might have that child so the child is going to be there.
Actually there Id be doubtable you because that idea is going to be itself a category that I can actually
contain other children.
So EDT Boxer Alita get text that too strange.
And then I can actually call that child an insider practice of this child.
I can just put it in Boxer Ponch speed and then I can call this set volume if it undischarged set value.
EDT Buxar punch spit that get text that too.
And then I need to put a semicolon at the end of my statement my dear.
Again I'll refer to the name of this reference to that child and that the child is going to be against
the ID EDT Boxer ID that get text that is trained and then again child and inside Apprentice's Boxer
stamina.
So this is going to be the key that sets value Itay Buxar stamina that kid takes that to strange.
And then I need to put a semicolon at the end of my statement.
So now it's actually run our project again.
And let's actually open the web browser and then the emulator here.
So let's provide some values here.
So for example the idea can be 1 2 3 4 5 6 7 8 9.
OK one two three four five six seven eight nine.
And the Pogson name is going to be for example a b c d.
And the punch power is 1000.
The punch spit is 2000 and boxercise you know is for example 200 or 2000.
Right.
And then I can actually make the keyboard disappear.
And then I can just click on this send data to a server.
As you can see we have another category here.
Right.
And if we have boxer name we have boxer punch power we have blocks upon speed and we have boxer stamina
right.
So this is just an application in order to show you how we can actually create children inside your
structure and how we can actually create our children for those children.
And then how you can send data to the server so I can actually create lots of children.
So as you can see here I can say that my ref thought child for example the child is a right that child
and the child the child of A is B.
Right.
But child and the child of B is see that child and the child of C is D.
And then finally I can say set value and the value is right.
I can't put a semicolon here.
Let's run our project now and then this let me show you the emulator here.
So just open your web browser and then the emulator.
And now I can just again click on the send data to say here.
So as you can see here we have another category and this category contains another category.
So A contains B C B contains C and D.
Is equal to eat right.
We have.
We can actually create lots of child inside our categories.
So hopefully that makes sense.
And you already know what's going on here.
So you can actually figure out how to actually write data and data and send it to a server.
So if you have any questions about these concepts that I taught you in this material please post the
discussion in the course and then I do my best to answer all of your questions.
Thank you very much for watching and I'll see you in the next tutorial.