1
00:00:00,870 --> 00:00:04,060
So now let me show you an important point here.

2
00:00:04,260 --> 00:00:08,240
So now this actually open the browser here and now.

3
00:00:08,250 --> 00:00:11,700
Let me actually just delete this value here.

4
00:00:11,700 --> 00:00:15,510
Just click on the list delete button here and then present it here.

5
00:00:15,730 --> 00:00:22,810
Here and now I want to actually just create another child.

6
00:00:22,860 --> 00:00:25,120
So just click on these ADD child button here.

7
00:00:25,140 --> 00:00:33,130
This plus button and for the name or you can assign the value for example name right name.

8
00:00:33,260 --> 00:00:35,810
And here I can for the value I can assign a value.

9
00:00:35,810 --> 00:00:41,460
For example mortars right and then I can add this value.

10
00:00:41,840 --> 00:00:45,650
So here we have this key and here we have this value.

11
00:00:45,800 --> 00:00:48,160
So let's actually create an order child.

12
00:00:48,170 --> 00:00:51,270
So just click on the plus button here at child.

13
00:00:51,530 --> 00:00:56,810
And again the name is going to be a name for the key name and the value.

14
00:00:56,810 --> 00:01:00,830
We have another thing for example I can say another name.

15
00:01:01,130 --> 00:01:01,890
Right.

16
00:01:01,910 --> 00:01:06,370
And then here just click on this add button here and let's see what happens.

17
00:01:06,830 --> 00:01:16,520
As you can see here we can't actually create to a child's with the same key be the same key name we

18
00:01:16,520 --> 00:01:16,960
have.

19
00:01:17,060 --> 00:01:20,170
You can only have munchy right.

20
00:01:20,270 --> 00:01:25,190
And the key is name and it actually just updated the value and other name.

21
00:01:25,190 --> 00:01:26,310
So what happened here.

22
00:01:26,330 --> 00:01:28,190
So how we can solve this problem.

23
00:01:28,190 --> 00:01:35,150
So for example we may have lots of boxers and those boxers have our key name.

24
00:01:35,180 --> 00:01:35,700
Right.

25
00:01:35,720 --> 00:01:37,050
Those boxers have names.

26
00:01:37,220 --> 00:01:43,460
And we need to actually provide a value for the name of each boxer and here as you can see we can only

27
00:01:43,460 --> 00:01:47,800
create our name or key with one name.

28
00:01:47,880 --> 00:01:51,860
Can actually create two keys with the same name.

29
00:01:51,950 --> 00:01:57,060
So in order to solve this problem we can actually just let me actually did it.

30
00:01:57,230 --> 00:02:00,010
Does she value here just delete it.

31
00:02:00,230 --> 00:02:03,620
And then press delete button here and then it's going to delete it.

32
00:02:03,620 --> 00:02:04,450
Right.

33
00:02:04,520 --> 00:02:06,220
And here I can get you to click on.

34
00:02:06,230 --> 00:02:12,040
Plus spot and he had a child and he can't say for example box ID.

35
00:02:12,410 --> 00:02:13,060
Right.

36
00:02:13,350 --> 00:02:22,090
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

37
00:02:22,090 --> 00:02:29,050
at did because in that case I cannot actually create a cheat roll for this box or ID here.

38
00:02:29,090 --> 00:02:34,200
So I want to actually just create a category list and this category is box that ID.

39
00:02:34,370 --> 00:02:40,010
So because I want to create a category I must not actually provide a value for this category.

40
00:02:40,040 --> 00:02:43,710
So here I just need to click on this child here.

41
00:02:43,710 --> 00:02:44,560
Right.

42
00:02:44,900 --> 00:02:54,050
And now as you can see for the name I can assign a value for example name and the value is going to

43
00:02:54,050 --> 00:02:59,200
be for example of value right.

44
00:02:59,480 --> 00:03:01,860
And then I can actually add this child here.

45
00:03:02,210 --> 00:03:04,600
So Boxer ID name value.

46
00:03:04,790 --> 00:03:09,940
So now as you can see I can actually create another child.

47
00:03:10,070 --> 00:03:12,070
So another child.

48
00:03:12,080 --> 00:03:16,310
So the idea is going to be for example one two three four.

49
00:03:16,700 --> 00:03:21,760
And because this is going to be a category I don't want to specify a value here.

50
00:03:21,890 --> 00:03:24,380
And then I just need to create another child here.

51
00:03:24,500 --> 00:03:31,310
So just click on this child here and now again I can actually create a name and then I can create a

52
00:03:31,310 --> 00:03:34,150
value for this name and then click on it.

53
00:03:34,310 --> 00:03:40,760
So as you can see here in this way when we actually create another category inside that category we

54
00:03:40,760 --> 00:03:42,350
have a name and a value.

55
00:03:42,560 --> 00:03:48,920
And that's why we actually provide a box of ID inside the user interface so that the user can actually

56
00:03:48,920 --> 00:03:51,670
provide a unique ID.

57
00:03:51,890 --> 00:03:56,690
And then we can actually create lots of boxes with lots of names and other attributes.

58
00:03:56,690 --> 00:03:57,880
Right.

59
00:03:57,890 --> 00:04:03,500
So as you can see now we have two kids with the same name but in two different categories.

60
00:04:03,800 --> 00:04:10,070
But if you wanted to actually just create two keys with the same name without creating these categories

61
00:04:10,260 --> 00:04:14,690
or in that case we do we are not allowed to do that and we may have problems.

62
00:04:14,780 --> 00:04:15,660
Right.

63
00:04:15,680 --> 00:04:17,500
So let's go back to what Android studio.

64
00:04:17,540 --> 00:04:19,750
First of all it's actually it is values here.

65
00:04:20,090 --> 00:04:24,660
And then delete this here delete.

66
00:04:24,850 --> 00:04:28,660
And now as you can see here we have only this instance right.

67
00:04:28,660 --> 00:04:33,780
So let's actually to go back to our Android studio and now inside is unclear.

68
00:04:33,780 --> 00:04:34,780
Meffert here.

69
00:04:34,930 --> 00:04:40,780
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

70
00:04:40,780 --> 00:04:41,420
here.

71
00:04:41,680 --> 00:04:46,630
So as you can see here this is the line of code that I pasted here inside this unclear method.

72
00:04:46,780 --> 00:04:48,280
So let's look at this line of code here.

73
00:04:48,310 --> 00:04:49,800
Let's see what's going on here.

74
00:04:49,960 --> 00:04:56,500
So as you can see I actually am referring to this minor offense here which is of type database reference

75
00:04:56,590 --> 00:05:02,660
and we are actually specifying our location in order to say to actually write our data in the database.

76
00:05:02,710 --> 00:05:05,750
So my dear child.

77
00:05:05,770 --> 00:05:08,100
So now let me open the web browser here.

78
00:05:08,290 --> 00:05:12,150
As you can see I told you that we can actually create 2000 here.

79
00:05:12,220 --> 00:05:18,840
So if you actually click on this plus button here at child I can create our children here for this parent.

80
00:05:19,060 --> 00:05:19,570
Right.

81
00:05:19,720 --> 00:05:27,580
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

82
00:05:27,580 --> 00:05:28,640
thing here myself.

83
00:05:28,670 --> 00:05:31,550
So my that is referring to this instance right.

84
00:05:31,570 --> 00:05:38,250
You want to write our data here and then we need to actually specify a child for this parent.

85
00:05:38,440 --> 00:05:44,800
And here as you can see inside these Apprentice's of this child as you can see here we need to specify

86
00:05:45,100 --> 00:05:47,750
the name the value of the key.

87
00:05:47,980 --> 00:05:48,450
Right.

88
00:05:48,610 --> 00:05:50,860
So here we need to specify the key.

89
00:05:51,150 --> 00:05:54,910
And as you can see here name value right here we need to specify the name.

90
00:05:54,940 --> 00:06:03,790
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

91
00:06:03,790 --> 00:06:04,440
strength.

92
00:06:04,600 --> 00:06:12,320
So here the name is going to be this ID right and here.

93
00:06:12,640 --> 00:06:19,300
And then I to the card again to chide because I want to actually create a category beatboxer ID.

94
00:06:19,600 --> 00:06:26,320
I don't want to just actually provide a value for this box or ID.

95
00:06:26,350 --> 00:06:28,570
So as you can see here might have a child.

96
00:06:28,600 --> 00:06:32,470
And inside the Prentice's of this child I need to specify the key.

97
00:06:32,650 --> 00:06:36,280
So I said that it is epoxied ID that takes that twisting.

98
00:06:36,280 --> 00:06:37,850
So this is going to be the key.

99
00:06:38,290 --> 00:06:43,850
And are you going to create A.F. child inside that child.

100
00:06:43,870 --> 00:06:48,520
So I want to create an automatic DVD box and ID and then.

101
00:06:48,670 --> 00:06:52,440
So for example he had the box that ID is 1 2 3 4 right.

102
00:06:52,780 --> 00:06:55,910
Because I went over to create a category here.

103
00:06:56,020 --> 00:07:00,300
I must not provide a value for this value right.

104
00:07:00,340 --> 00:07:07,340
So here because I want to create children for this category I just need to click on plus here.

105
00:07:07,360 --> 00:07:08,380
Right.

106
00:07:08,380 --> 00:07:12,730
So now we have this chat go to here as you can see.

107
00:07:12,730 --> 00:07:14,970
Name one two three four.

108
00:07:15,160 --> 00:07:15,610
Right.

109
00:07:15,820 --> 00:07:18,790
And now as you can see here this is our category.

110
00:07:18,790 --> 00:07:23,380
And now I can actually create children for this ID.

111
00:07:23,520 --> 00:07:24,330
Right.

112
00:07:24,460 --> 00:07:27,040
So here I can't say that.

113
00:07:27,550 --> 00:07:29,490
Let me show you the Android studio.

114
00:07:29,590 --> 00:07:33,720
So he might have that child it the box that ID that takes that to stream.

115
00:07:33,730 --> 00:07:37,930
So this is actually going to be a category disvalue.

116
00:07:38,110 --> 00:07:38,650
Right.

117
00:07:38,650 --> 00:07:40,290
Let me show you the web browser.

118
00:07:40,390 --> 00:07:44,560
And now again I called child on this child here.

119
00:07:44,590 --> 00:07:49,710
So because I want to create another child for this child so tight with the key name.

120
00:07:50,050 --> 00:07:54,590
And then as you can see here alcaldes set value on this child.

121
00:07:54,940 --> 00:07:55,470
Right.

122
00:07:55,480 --> 00:08:02,310
So now let me actually just delete these values here and now let me open the Android studio.

123
00:08:02,320 --> 00:08:04,570
So what sets value.

124
00:08:04,570 --> 00:08:08,330
EDT Buxar name that takes the history.

125
00:08:08,530 --> 00:08:12,520
So let me run the project and then it will make sense.

126
00:08:12,520 --> 00:08:20,370
So here let me opened a web browser and now that application is actually running on the simulator here

127
00:08:20,750 --> 00:08:23,320
let's actually provide a box that ID here.

128
00:08:23,320 --> 00:08:27,980
So the box idea you should actually ask the user to provide a unique ID.

129
00:08:28,090 --> 00:08:32,170
You can ask them to actually provide his or her mobile phone number.

130
00:08:32,170 --> 00:08:35,120
So here I'm going to provide a value one two three four five.

131
00:08:35,290 --> 00:08:35,740
Right.

132
00:08:35,950 --> 00:08:38,550
And then I can get you to provide the proximate name.

133
00:08:38,540 --> 00:08:46,280
So the box name can be for example a box or a right or can I say that.

134
00:08:47,020 --> 00:08:48,950
So this is this is the name of the boxer.

135
00:08:49,180 --> 00:08:53,520
And then I can actually click on it and send data to set it right.

136
00:08:53,530 --> 00:08:59,740
So because we only actually provided this line of code here in order to just create actually a box of

137
00:08:59,740 --> 00:09:07,120
ID and then inside that category box that idea we just need to create a tight name and then we are setting

138
00:09:07,120 --> 00:09:09,780
the value of that a name which is a right.

139
00:09:09,880 --> 00:09:16,480
So now let's actually click on disputant send data to server and now let's actually open the browser

140
00:09:16,940 --> 00:09:18,140
as you can see here.

141
00:09:18,520 --> 00:09:21,350
We have actually a track record with this ID.

142
00:09:21,420 --> 00:09:23,260
One two three four five.

143
00:09:23,530 --> 00:09:23,830
Right.

144
00:09:23,830 --> 00:09:26,740
So this is the key readout value.

145
00:09:27,030 --> 00:09:32,260
And then as you can see inside these categories we have name name of the boxer.

146
00:09:32,440 --> 00:09:39,060
And as you can see that excuse me the value is a.

147
00:09:39,260 --> 00:09:40,280
Right.

148
00:09:40,340 --> 00:09:46,610
So let's actually open the Android studio so I can get you to say the name is for example box her name

149
00:09:48,300 --> 00:09:51,290
and let's actually add up application again.

150
00:09:51,950 --> 00:09:55,280
Let's open the web browser and the emulator.

151
00:09:55,280 --> 00:09:59,990
So here I can say that the name is another name for example.

152
00:10:00,440 --> 00:10:02,050
For example A.

153
00:10:02,090 --> 00:10:02,650
Right.

154
00:10:02,840 --> 00:10:10,380
And then let's actually just click on the send data to server and as you can see here we have another

155
00:10:10,410 --> 00:10:17,790
cheap box so name the devaluate a and as you can see here we have this name here OK because we change

156
00:10:17,880 --> 00:10:18,860
the key here.

157
00:10:18,900 --> 00:10:21,780
We can actually create two keys with different names.

158
00:10:21,840 --> 00:10:24,020
So let's actually delete this shit here.

159
00:10:24,750 --> 00:10:25,580
Delete.

160
00:10:25,680 --> 00:10:28,770
Let's actually open our emulator again.

161
00:10:28,860 --> 00:10:34,660
Let's change this value back name to BBB and then click on send data to a server.

162
00:10:34,680 --> 00:10:37,560
And now it's going to update the value of this box only.

163
00:10:37,800 --> 00:10:44,540
Right because we can only have one key one key inside our are critical to here right.

164
00:10:44,550 --> 00:10:46,960
We can have two keys with the same name.

165
00:10:46,980 --> 00:10:48,820
Inside our category.

166
00:10:48,840 --> 00:10:49,840
So this is the idea.

167
00:10:49,840 --> 00:10:51,570
One two three four five bucks.

168
00:10:51,580 --> 00:10:53,350
Name this value right.

169
00:10:53,700 --> 00:11:00,930
And let's actually change the ID to another value for example 10 10 10 and let's actually click click

170
00:11:00,930 --> 00:11:07,850
on send that data to server as you can see it's going to create another category with this ID and it

171
00:11:07,880 --> 00:11:12,130
inside that category we have boxer named BBB.

172
00:11:12,360 --> 00:11:13,800
Right.

173
00:11:13,860 --> 00:11:15,750
So hopefully that makes sense.

174
00:11:15,750 --> 00:11:18,210
Let's actually go inside and write studio.

175
00:11:18,390 --> 00:11:20,610
And again I can't say my ref.

176
00:11:21,070 --> 00:11:25,230
But child so the child is going to be.

177
00:11:25,230 --> 00:11:32,100
Again we need to actually specify the actually ID because we are going to put our values inside the

178
00:11:32,190 --> 00:11:32,780
ID right.

179
00:11:32,790 --> 00:11:35,520
We need to actually prove or create a category.

180
00:11:35,580 --> 00:11:41,620
So ADT Buxar ID that get fixed that constraint.

181
00:11:41,910 --> 00:11:42,480
Right.

182
00:11:42,540 --> 00:11:49,950
And then as you can see here we need to create another child for this ID right because this ID here

183
00:11:49,950 --> 00:11:55,940
is actually a category not a key value or category only only we need to provide a key.

184
00:11:56,100 --> 00:11:57,150
So this is the key.

185
00:11:57,240 --> 00:11:58,690
This is the value of the key.

186
00:11:58,890 --> 00:12:04,830
We dont want to provide an a value for this key we just want to provide the key because inside that

187
00:12:04,970 --> 00:12:13,620
we we are we are going to actually create some children so that child again that child and now I need

188
00:12:13,620 --> 00:12:26,250
to specify the key of that child so that she of that child could be actually a boxer punch power.

189
00:12:26,760 --> 00:12:27,370
Right.

190
00:12:27,660 --> 00:12:30,830
And then I can say that.

191
00:12:30,840 --> 00:12:35,650
So as you can see here I created a new line here so that you can see these values right.

192
00:12:35,670 --> 00:12:40,960
I could say just hear that and then I could actually write my code here but I want to put it here and

193
00:12:41,040 --> 00:12:43,620
in an evil line so that you can see whats going on here.

194
00:12:43,920 --> 00:12:46,610
That said value.

195
00:12:46,740 --> 00:12:50,330
And as you can see here this sets volume if it needs an object right.

196
00:12:50,460 --> 00:13:00,200
So here I can see EDT Boxer punch power dot get text dot to a string as you can see here.

197
00:13:00,210 --> 00:13:02,630
I just want to put a semicolon at the end of my statement.

198
00:13:02,820 --> 00:13:07,830
So when the user provides a value for that detail which is going to be an integer value is going to

199
00:13:07,830 --> 00:13:13,020
actually convert that value to a string value and then we can actually send those data to the server.

200
00:13:13,020 --> 00:13:16,330
So let's actually run our project now.

201
00:13:16,650 --> 00:13:22,530
And now let's actually open a web browser and then the emulator here.

202
00:13:22,860 --> 00:13:30,570
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

203
00:13:30,570 --> 00:13:32,020
same ID that we have here.

204
00:13:32,040 --> 00:13:32,820
Right.

205
00:13:32,940 --> 00:13:36,270
And the box name could be for example.

206
00:13:36,960 --> 00:13:48,390
And the punch power here and say 1000 or 10000 or 100000 right and that I can't make this keyboard disappear.

207
00:13:48,810 --> 00:13:55,790
And then I can click on this send data to server and here as you can see it is updated this that the

208
00:13:55,870 --> 00:14:02,150
value of this Buxar name and actually created another child for this category which is this 1 1 2 3

209
00:14:02,150 --> 00:14:06,380
4 5 bucks punch power disvalue 100000.

210
00:14:06,780 --> 00:14:07,860
Right.

211
00:14:08,150 --> 00:14:13,470
And now I can actually create another IED for example the idea is one right.

212
00:14:13,550 --> 00:14:22,960
And then I can just say that the Paxo name is a ABC and a boxer punch power is for example 200.

213
00:14:23,360 --> 00:14:24,000
Right.

214
00:14:24,050 --> 00:14:26,530
And then I can make this keyboard disappear.

215
00:14:26,720 --> 00:14:31,690
And then you can send data to a server as you can see it's going to create another category here.

216
00:14:31,880 --> 00:14:32,380
Right.

217
00:14:32,540 --> 00:14:40,100
And if I open this one here as you can see we have these children inside this key that the ID is one

218
00:14:40,190 --> 00:14:43,680
box and ABC box or punch power is 200.

219
00:14:44,180 --> 00:14:45,500
So hopefully that makes sense.

220
00:14:45,500 --> 00:14:49,330
So let's go back into our Android studio and let's put the other lines of code here.

221
00:14:49,610 --> 00:14:53,930
Might have that might have that child so the child is going to be there.

222
00:14:54,080 --> 00:15:01,760
Actually there Id be doubtable you because that idea is going to be itself a category that I can actually

223
00:15:01,760 --> 00:15:03,540
contain other children.

224
00:15:03,590 --> 00:15:08,840
So EDT Boxer Alita get text that too strange.

225
00:15:09,590 --> 00:15:16,060
And then I can actually call that child an insider practice of this child.

226
00:15:16,070 --> 00:15:26,870
I can just put it in Boxer Ponch speed and then I can call this set volume if it undischarged set value.

227
00:15:27,020 --> 00:15:32,240
EDT Buxar punch spit that get text that too.

228
00:15:32,600 --> 00:15:35,900
And then I need to put a semicolon at the end of my statement my dear.

229
00:15:35,930 --> 00:15:43,700
Again I'll refer to the name of this reference to that child and that the child is going to be against

230
00:15:43,700 --> 00:15:53,300
the ID EDT Boxer ID that get text that is trained and then again child and inside Apprentice's Boxer

231
00:15:54,260 --> 00:15:55,260
stamina.

232
00:15:55,490 --> 00:16:06,370
So this is going to be the key that sets value Itay Buxar stamina that kid takes that to strange.

233
00:16:06,410 --> 00:16:09,280
And then I need to put a semicolon at the end of my statement.

234
00:16:09,380 --> 00:16:11,600
So now it's actually run our project again.

235
00:16:12,600 --> 00:16:17,820
And let's actually open the web browser and then the emulator here.

236
00:16:17,820 --> 00:16:19,380
So let's provide some values here.

237
00:16:19,380 --> 00:16:24,070
So for example the idea can be 1 2 3 4 5 6 7 8 9.

238
00:16:24,410 --> 00:16:26,800
OK one two three four five six seven eight nine.

239
00:16:27,090 --> 00:16:31,690
And the Pogson name is going to be for example a b c d.

240
00:16:32,220 --> 00:16:34,790
And the punch power is 1000.

241
00:16:34,940 --> 00:16:42,240
The punch spit is 2000 and boxercise you know is for example 200 or 2000.

242
00:16:42,330 --> 00:16:42,810
Right.

243
00:16:43,020 --> 00:16:46,010
And then I can actually make the keyboard disappear.

244
00:16:46,380 --> 00:16:49,590
And then I can just click on this send data to a server.

245
00:16:49,950 --> 00:16:52,470
As you can see we have another category here.

246
00:16:52,590 --> 00:16:53,410
Right.

247
00:16:53,910 --> 00:17:02,520
And if we have boxer name we have boxer punch power we have blocks upon speed and we have boxer stamina

248
00:17:03,540 --> 00:17:04,350
right.

249
00:17:04,830 --> 00:17:11,160
So this is just an application in order to show you how we can actually create children inside your

250
00:17:11,160 --> 00:17:14,950
structure and how we can actually create our children for those children.

251
00:17:15,240 --> 00:17:21,390
And then how you can send data to the server so I can actually create lots of children.

252
00:17:21,390 --> 00:17:29,940
So as you can see here I can say that my ref thought child for example the child is a right that child

253
00:17:30,300 --> 00:17:32,520
and the child the child of A is B.

254
00:17:32,610 --> 00:17:33,450
Right.

255
00:17:33,720 --> 00:17:40,880
But child and the child of B is see that child and the child of C is D.

256
00:17:41,130 --> 00:17:46,070
And then finally I can say set value and the value is right.

257
00:17:46,110 --> 00:17:47,660
I can't put a semicolon here.

258
00:17:47,760 --> 00:17:51,990
Let's run our project now and then this let me show you the emulator here.

259
00:17:51,990 --> 00:17:54,820
So just open your web browser and then the emulator.

260
00:17:55,140 --> 00:17:59,990
And now I can just again click on the send data to say here.

261
00:18:00,360 --> 00:18:06,070
So as you can see here we have another category and this category contains another category.

262
00:18:06,100 --> 00:18:11,810
So A contains B C B contains C and D.

263
00:18:11,910 --> 00:18:14,280
Is equal to eat right.

264
00:18:14,370 --> 00:18:14,850
We have.

265
00:18:14,880 --> 00:18:19,140
We can actually create lots of child inside our categories.

266
00:18:19,140 --> 00:18:21,160
So hopefully that makes sense.

267
00:18:21,180 --> 00:18:23,810
And you already know what's going on here.

268
00:18:23,970 --> 00:18:29,800
So you can actually figure out how to actually write data and data and send it to a server.

269
00:18:30,030 --> 00:18:35,340
So if you have any questions about these concepts that I taught you in this material please post the

270
00:18:35,340 --> 00:18:39,340
discussion in the course and then I do my best to answer all of your questions.

271
00:18:39,360 --> 00:18:42,830
Thank you very much for watching and I'll see you in the next tutorial.

