1
00:00:00,390 --> 00:00:06,220
So as you can see here I also implemented this view that unclick eggless or remove it.

2
00:00:06,250 --> 00:00:07,760
And as you can see here.

3
00:00:08,140 --> 00:00:16,320
They did it about an object and the image view object or both of them actually are the subclass of The

4
00:00:16,320 --> 00:00:17,570
View class.

5
00:00:17,580 --> 00:00:18,120
OK.

6
00:00:18,210 --> 00:00:26,400
So we can refer to those objects as views OK because there is actually an is a relationship between

7
00:00:26,400 --> 00:00:27,810
these objects.

8
00:00:28,040 --> 00:00:36,330
And as you can see here I can just switch between the ideas of my for example a button and my image

9
00:00:36,330 --> 00:00:41,670
view I want to differentiate between Actually my button and my image view.

10
00:00:41,700 --> 00:00:47,490
So whenever the user clicks on my button case our thoughts are indeed bitty.

11
00:00:47,530 --> 00:00:51,230
And so if the user clicks on the button here.

12
00:00:51,330 --> 00:00:53,660
I actually created an intent object.

13
00:00:53,760 --> 00:00:54,240
OK.

14
00:00:54,240 --> 00:00:58,120
Intent and the name of this object is intent.

15
00:00:58,230 --> 00:00:59,660
New intent.

16
00:00:59,730 --> 00:01:00,470
OK.

17
00:01:00,700 --> 00:01:07,410
And here are for the constructor of this class as you can see here main activity that this first of

18
00:01:07,410 --> 00:01:08,870
all we need to actually specify.

19
00:01:08,880 --> 00:01:12,590
So this is going to be the class that we want to actually move from.

20
00:01:12,660 --> 00:01:17,600
OK main activity that this this is going to be are of first argument.

21
00:01:17,730 --> 00:01:18,250
OK.

22
00:01:18,480 --> 00:01:22,790
And our second argument is the class that you're going to actually transfer to.

23
00:01:22,880 --> 00:01:23,450
OK.

24
00:01:23,580 --> 00:01:28,260
We want to actually transfer from this activity the main activity to the second activity.

25
00:01:28,260 --> 00:01:28,800
OK.

26
00:01:29,190 --> 00:01:31,070
So how we can do that.

27
00:01:31,080 --> 00:01:34,690
So in order to do that we need to actually create an intent object.

28
00:01:34,820 --> 00:01:35,350
OK.

29
00:01:35,700 --> 00:01:39,700
And here you can see here we don't have the second activity class yet.

30
00:01:39,730 --> 00:01:42,270
That's why it is now showing us an error.

31
00:01:42,420 --> 00:01:45,390
So we it actually creates that class that class in a minute.

32
00:01:45,390 --> 00:01:51,180
So the first that we actually are talking about these lines of quote here and here I want to actually

33
00:01:51,180 --> 00:01:57,140
pass some information from the main activity class to the second and second activity class.

34
00:01:57,150 --> 00:02:01,590
So in order to do that I need to just refer to the name of this intent intent.

35
00:02:01,620 --> 00:02:04,040
Object that put extra.

36
00:02:04,470 --> 00:02:10,490
And here we need to actually specify the key of the value that you want to pass to and other activity.

37
00:02:10,620 --> 00:02:12,730
So this name is actually the key.

38
00:02:12,930 --> 00:02:13,430
OK.

39
00:02:13,530 --> 00:02:14,750
Inside is double quotes.

40
00:02:14,910 --> 00:02:15,350
OK.

41
00:02:15,360 --> 00:02:18,030
And as you can see here this value is capitalized.

42
00:02:18,090 --> 00:02:20,880
So always capitalized your keys.

43
00:02:20,940 --> 00:02:21,520
OK.

44
00:02:21,900 --> 00:02:27,960
So this is our key name and the second one is that the second argument is the value that you want to

45
00:02:27,960 --> 00:02:31,830
actually pass from this activity to the second activity.

46
00:02:31,860 --> 00:02:35,410
It is the name that takes the two strings.

47
00:02:35,580 --> 00:02:36,270
OK.

48
00:02:36,510 --> 00:02:39,550
So as you can see here in say this activity minute example.

49
00:02:39,690 --> 00:02:48,330
So whatever value the user enter is this text here is going to be actually passed from this value to

50
00:02:48,330 --> 00:02:49,140
another value.

51
00:02:49,140 --> 00:02:49,690
OK.

52
00:02:50,070 --> 00:02:51,250
So I have this value here.

53
00:02:51,270 --> 00:02:53,790
It is the name that takes that to a string.

54
00:02:54,210 --> 00:02:59,960
And here as you can see intent that put extra email.

55
00:02:59,970 --> 00:03:00,580
So here it is.

56
00:03:00,630 --> 00:03:02,700
This is going to be our key email.

57
00:03:02,970 --> 00:03:04,900
As you can see here this is capitalized.

58
00:03:05,100 --> 00:03:11,250
And for the second argument I'm want to actually I actually specified the value that I want to pass

59
00:03:11,250 --> 00:03:13,440
from this activity to another activity.

60
00:03:13,560 --> 00:03:16,730
EDT e-mail that get text twisting.

61
00:03:17,220 --> 00:03:22,440
Again I have this line of code here intent that extra that put extra.

62
00:03:22,650 --> 00:03:29,340
And here I am specifying the key user underline name and the second one is there actually is actually

63
00:03:29,380 --> 00:03:34,110
the value that I want to pass from this main activity class to the second activity class.

64
00:03:34,120 --> 00:03:37,690
It is a username that takes the two strings.

65
00:03:38,190 --> 00:03:45,930
And here again intent that put extra password this is alci it is password gettext that to a string.

66
00:03:46,380 --> 00:03:47,920
And here it is.

67
00:03:48,030 --> 00:03:49,380
That puts extra.

68
00:03:49,500 --> 00:03:54,320
And here as you can see here I am actually specifying the key gender type.

69
00:03:54,570 --> 00:03:56,730
And the second value is the gender's type.

70
00:03:56,730 --> 00:04:01,890
So here as you can see in our main activity class I have this string value.

71
00:04:01,920 --> 00:04:04,000
It is a variable gender type.

72
00:04:04,020 --> 00:04:04,560
OK.

73
00:04:04,890 --> 00:04:11,520
So now as you can see I am specifying that the key is going to be gender type and I want to pass that

74
00:04:11,940 --> 00:04:15,980
string value from this activity to the second activity class.

75
00:04:16,440 --> 00:04:24,540
And now as you can see here because I want to I want also to actually pass this image from this activity

76
00:04:24,540 --> 00:04:25,840
to another activity.

77
00:04:25,980 --> 00:04:29,800
I also need to actually do something with that image.

78
00:04:29,820 --> 00:04:30,350
OK.

79
00:04:30,510 --> 00:04:37,590
So in order to actually pass one image from one activity to another activity you need to actually convert

80
00:04:37,950 --> 00:04:41,510
that image to an array of bytes.

81
00:04:41,610 --> 00:04:42,150
OK.

82
00:04:42,270 --> 00:04:50,130
So for that specific job I need to actually create an object of type byte array output stream as I did

83
00:04:50,130 --> 00:04:50,720
here.

84
00:04:50,730 --> 00:04:56,770
Both are a output stream and the name of this object is Stream new byte at a output stream.

85
00:04:56,880 --> 00:04:59,530
So here I actually created an object of type byte.

86
00:04:59,540 --> 00:05:06,910
Ari with stream and here I actually fared to the name of this a bitmap object that I actually declared

87
00:05:07,320 --> 00:05:11,540
inside this mean activity class bitmap bitmap object.

88
00:05:11,610 --> 00:05:14,580
So here as you can see bitmapped does compress.

89
00:05:14,700 --> 00:05:18,440
So hit it because I want to actually pass this image to another other activity.

90
00:05:18,600 --> 00:05:25,950
I need to actually compress this image this bitmap object so bitmap that compress for the first argument

91
00:05:26,010 --> 00:05:31,350
I need to specify the format of the image that I want to pass from this activity to another activity

92
00:05:31,590 --> 00:05:34,670
bitmap that compress format that P and G.

93
00:05:34,680 --> 00:05:38,640
OK so our image is going to be at an IP and defined.

94
00:05:38,670 --> 00:05:39,300
OK.

95
00:05:39,690 --> 00:05:43,630
And for the second argument we need to specify the quality of our image.

96
00:05:43,680 --> 00:05:52,160
So 100 is good enough and for the first argument we need to specify the byte Aure outputs an object

97
00:05:52,230 --> 00:05:53,250
as you can see here.

98
00:05:53,400 --> 00:06:03,720
I assigned this object here for the first argument and here in line 82 I actually created an array of

99
00:06:03,720 --> 00:06:04,630
type byte.

100
00:06:04,680 --> 00:06:05,190
OK.

101
00:06:05,460 --> 00:06:12,960
And the name of this area is byte array assignment operator and here as you can see I referred to the

102
00:06:12,960 --> 00:06:15,150
name of this object byte.

103
00:06:15,180 --> 00:06:16,560
Are they out with the stream object.

104
00:06:16,560 --> 00:06:19,410
Stream dots to bite arii.

105
00:06:19,470 --> 00:06:26,160
So I am actually converting this stream object to actually to our bite array object and that I am assigning

106
00:06:26,190 --> 00:06:28,670
that value to despite the error here.

107
00:06:28,740 --> 00:06:29,580
As you can see.

108
00:06:29,680 --> 00:06:35,930
And here I am actually ascending this image to another activity intent that puts extra.

109
00:06:36,210 --> 00:06:36,580
OK.

110
00:06:36,630 --> 00:06:38,530
Intent does put extra.

111
00:06:38,550 --> 00:06:41,820
So for the first argument as against it see is going to be ARCI.

112
00:06:41,970 --> 00:06:45,530
So remember always capitalize your keys.

113
00:06:45,660 --> 00:06:47,170
So I just need to type in here.

114
00:06:47,210 --> 00:06:50,110
Peak sure as it against here.

115
00:06:50,460 --> 00:06:53,110
And our second argument is bytes at a.

116
00:06:53,110 --> 00:06:54,900
Here as you can see.

117
00:06:55,350 --> 00:07:03,040
And now as you can see here I am actually starting this activity here start the activity intense.

118
00:07:03,300 --> 00:07:08,400
So here are because I want to move from this activity to another activity I need to write this code

119
00:07:08,400 --> 00:07:10,170
here to start activity intent.

120
00:07:10,170 --> 00:07:13,980
So it is going to actually open the second activity and then it's going to actually pass these values

121
00:07:14,430 --> 00:07:16,660
from this activity to another activity.

122
00:07:17,010 --> 00:07:21,210
So now I need to actually create the second activity class.

123
00:07:21,240 --> 00:07:21,750
OK.

124
00:07:21,930 --> 00:07:28,710
So in order to do that because all you want to actually create an activity here I need to I can just

125
00:07:28,920 --> 00:07:30,640
click on this package here.

126
00:07:30,710 --> 00:07:33,970
That example that Matas or saw that that at 44 here.

127
00:07:34,170 --> 00:07:40,920
Just select this package and then click on File New and then click on activity.

128
00:07:40,950 --> 00:07:46,760
As you can see here we have this activity here and now a selectees empty activity here.

129
00:07:46,930 --> 00:07:49,830
You can actually you can actually select these activities here.

130
00:07:49,980 --> 00:07:54,220
But for our application just select this empty activity.

131
00:07:54,270 --> 00:07:57,800
And now we can actually specify the name of your activities.

132
00:07:57,820 --> 00:08:02,820
So just type in here a activity.

133
00:08:03,600 --> 00:08:06,780
Here as you can see it says generate a find.

134
00:08:06,900 --> 00:08:09,360
So make sure that this option is actually checked.

135
00:08:09,360 --> 00:08:15,870
So it's going actually to create a layout file for you for your activity and here this is going to be

136
00:08:15,870 --> 00:08:22,650
the name of our out activity the line segment and this is going to be our package that this activity

137
00:08:22,650 --> 00:08:24,170
is going to be inside it.

138
00:08:24,600 --> 00:08:32,310
So now click on finish and now as you can see our activity our second activity is actually created and

139
00:08:32,310 --> 00:08:37,740
here inside is lay out fight as you can see we have this activity underline say in that example here

140
00:08:38,190 --> 00:08:40,990
that is actually related to the second activity that goes up.

141
00:08:41,100 --> 00:08:44,320
So here as you can see we have dismasted set content view.

142
00:08:44,490 --> 00:08:47,590
Our thoughts lay out that activity the second segment.

143
00:08:47,640 --> 00:08:53,670
So this is our ASML fight that is related to this activity here second activity that of a fight and

144
00:08:53,700 --> 00:08:59,730
in our Android manifest here as you can see we also have this line of code here.

145
00:08:59,940 --> 00:09:05,940
So the idea is automatically generated this line of code for us activity and Royte name that second

146
00:09:05,940 --> 00:09:06,710
activity.

147
00:09:06,870 --> 00:09:07,630
OK.

148
00:09:07,830 --> 00:09:15,750
So now we also declared this our second activity in our manifest here and now.

149
00:09:15,750 --> 00:09:21,000
So first of all let's actually go back to our activity Underland second that example here and now I

150
00:09:21,000 --> 00:09:27,280
want to actually design the user interface of our second activity class.

151
00:09:27,390 --> 00:09:28,110
OK.

152
00:09:28,320 --> 00:09:36,810
So now OK now I want to actually design the user interface of our second activity so first of all let's

153
00:09:36,810 --> 00:09:41,690
actually track a linearly out vertical at the center of this relatively out here.

154
00:09:41,760 --> 00:09:42,240
OK.

155
00:09:42,240 --> 00:09:48,550
These are relatively out and I put this linearly out vertical at the center of this relatively out.

156
00:09:48,570 --> 00:09:54,480
OK so now let's actually drag an image view into this linearly out vertical.

157
00:09:54,540 --> 00:10:01,120
So as you can see here inside these widgets folder I have this image view here just selected at and

158
00:10:01,150 --> 00:10:04,670
put it at the center of this linearly outwards.

159
00:10:04,930 --> 00:10:12,460
And as you can see here let's actually assign the value hundred for the layout of this of this image

160
00:10:12,520 --> 00:10:14,090
view 200.

161
00:10:14,380 --> 00:10:19,010
And it's actually assigned the value 200 for the layout height of this image.

162
00:10:19,060 --> 00:10:21,290
And then press on until key on your keyboard.

163
00:10:21,670 --> 00:10:26,200
And as you can see here the layout gravity is centered horizontal.

164
00:10:26,480 --> 00:10:36,900
And now let's actually assign an ID to this image view our AMG animal received and then press on into

165
00:10:36,940 --> 00:10:37,990
here on your keyboard.

166
00:10:38,170 --> 00:10:41,940
So the idea of this image is all in the animal received.

167
00:10:42,040 --> 00:10:50,350
OK and now let's actually select this takes your large takes you inside these widgets folder and put

168
00:10:50,350 --> 00:10:52,770
it inside is linearly as vertical OK.

169
00:10:52,780 --> 00:10:53,690
Just put it here.

170
00:10:53,830 --> 00:11:01,270
Below these are image view and double click on it just deletes the text of this text view and for the

171
00:11:01,270 --> 00:11:10,210
ID just type in here takes the name or KTXA the name and then press on enter key on your keyboard.

172
00:11:10,730 --> 00:11:14,960
And that's actually assigned a value match Pallant for the layout.

173
00:11:14,980 --> 00:11:22,830
Which of these takes you so select this match parent here and now present enter key on your keyboard.

174
00:11:22,900 --> 00:11:23,530
OK.

175
00:11:23,830 --> 00:11:28,460
And then Arliss actually as you can see here the left gravity is centered horizontally.

176
00:11:28,600 --> 00:11:33,590
And now essentially find the gravity attribute that is related to the state's view.

177
00:11:33,700 --> 00:11:35,890
So this is our gravity attribute.

178
00:11:35,890 --> 00:11:36,500
Open it.

179
00:11:36,670 --> 00:11:41,470
And that's actually as you can see it this is our center horizontal attribute that is related to the

180
00:11:41,470 --> 00:11:45,090
space view just accelerated and checked is checkbooks.

181
00:11:45,160 --> 00:11:45,640
OK.

182
00:11:45,700 --> 00:11:51,730
So it's going to actually center the children of these states so that the children of this this is going

183
00:11:51,730 --> 00:11:53,490
to be the text of the state's view.

184
00:11:53,500 --> 00:11:57,500
So if it sticks you and just assign a text to the state's view.

185
00:11:57,640 --> 00:12:03,190
Now as you can see the text is actually at the center horizontal of this takes you here.

186
00:12:03,190 --> 00:12:04,020
OK.

187
00:12:04,330 --> 00:12:08,370
So it's a double click on it and deletes the text of this text view.

188
00:12:08,410 --> 00:12:13,270
Now let's actually write and order a text view into this linearly I-30 call.

189
00:12:13,300 --> 00:12:20,500
So just select it and put it below this takes you here and inside the city nearly out vertical and WTNH

190
00:12:20,860 --> 00:12:22,430
deletes the text of the state's view.

191
00:12:22,450 --> 00:12:29,950
And for the idea just typing here takes the email th the e-mail received and then our press Enter key

192
00:12:29,950 --> 00:12:31,560
on your keyboard.

193
00:12:32,350 --> 00:12:41,100
And then again for the lay out with assigned the value match Pallant and actually find the let's actually

194
00:12:41,100 --> 00:12:46,490
find the gravity attribute this is the gravity attribute that is related to the state's view and then

195
00:12:46,490 --> 00:12:49,340
our checked is our center horizontal here.

196
00:12:49,590 --> 00:12:50,660
As you can see.

197
00:12:50,850 --> 00:12:57,730
And let's actually right another large stakes into this linearly vertical and put it at the center horizontally

198
00:12:58,040 --> 00:13:01,220
OK of these are linearly aesthetical OK.

199
00:13:01,290 --> 00:13:06,500
Just put it at the center horizontal double clicked on it deletes the text of the state's view and for

200
00:13:06,510 --> 00:13:16,290
the ID just type in here TXI the user name and then press on entelechy on your keyboard and faultily

201
00:13:16,290 --> 00:13:16,750
outfit.

202
00:13:16,800 --> 00:13:20,520
Assign the value match parent match parent.

203
00:13:20,740 --> 00:13:23,640
And let's actually find that gravity attributes.

204
00:13:23,670 --> 00:13:30,470
This is the gravity attribute and then select the center horizontal here and check this checkbox.

205
00:13:30,480 --> 00:13:36,450
So now let's actually right and our other large takes you into this linearly as vertical and put it

206
00:13:36,480 --> 00:13:39,090
at the center horizontal of this linearly.

207
00:13:39,090 --> 00:13:39,950
I swear to god.

208
00:13:40,230 --> 00:13:45,630
So this is our last this year and I'm going to put it at the center horizontal of this linearly at Hollys

209
00:13:46,050 --> 00:13:47,380
linearly Ellsworthy Karl.

210
00:13:47,700 --> 00:13:54,150
Double click on it delete the text of this text view and for the ID just type in here takes the password

211
00:13:56,070 --> 00:13:59,810
and then press on Enter key on your keyboard again.

212
00:13:59,940 --> 00:14:06,960
Assign the value of match parent for the layout of this RTX the passport here.

213
00:14:07,200 --> 00:14:10,170
And let's actually find the gravity attribute here.

214
00:14:10,230 --> 00:14:12,510
As you can see this is the gravity attribute.

215
00:14:12,690 --> 00:14:20,070
And then let's actually check this center horizontal checkbox here and now.

216
00:14:20,280 --> 00:14:26,300
Let's actually go back to our main activity class here and here as you can see I am actually passing

217
00:14:26,550 --> 00:14:30,330
these values to that to the next activity to the second activity.

218
00:14:30,360 --> 00:14:33,000
And as you can see here this area is gone.

219
00:14:33,000 --> 00:14:36,490
Second activity that class and here I to actually pass these values.

220
00:14:36,510 --> 00:14:39,720
Name email username password gender type.

221
00:14:39,960 --> 00:14:46,410
And then here I am I am I truly I want to pass the image from this activity to another activity.

222
00:14:46,410 --> 00:14:47,070
OK.

223
00:14:47,370 --> 00:14:53,720
And I actually decided to convert that image to to actually a bite out of a output stream.

224
00:14:53,940 --> 00:14:57,090
And here as you can see it bitmap that compress.

225
00:14:57,120 --> 00:15:01,240
And here I am actually compressing that image bitmap.

226
00:15:01,500 --> 00:15:05,780
And here I created an array of type byte.

227
00:15:06,090 --> 00:15:14,310
And here I actually called these two byte RMF at on this string object here that is of type byte array

228
00:15:14,310 --> 00:15:15,310
out with STREAM.

229
00:15:15,390 --> 00:15:21,960
And then here I want to actually pass this a byte at a here to the second activity intense that put

230
00:15:21,960 --> 00:15:22,430
extra.

231
00:15:22,440 --> 00:15:24,890
This is going to be the key and point at me.

232
00:15:24,990 --> 00:15:30,450
So I actually converted my image to I got to actually a byte array.

233
00:15:30,730 --> 00:15:37,370
OK to an array of bytes and then I can actually pass this image from this activity to the second activity.

234
00:15:37,620 --> 00:15:42,740
And here I am actually starting the second activity start activity intense break.

235
00:15:43,110 --> 00:15:46,380
And as you can see here we have another case statement here.

236
00:15:46,400 --> 00:15:49,190
Case that ID that I am the animal.

237
00:15:49,470 --> 00:15:56,070
And here I created another intent object intent intent image new intent.

238
00:15:56,220 --> 00:16:00,210
And here I want to actually open this action.

239
00:16:00,240 --> 00:16:02,360
Intent that action gets content.

240
00:16:02,370 --> 00:16:09,150
So I want to actually open the photos of my actually device the photos application of my device and

241
00:16:09,150 --> 00:16:14,340
then I can actually access the images that are inside of my device.

242
00:16:14,340 --> 00:16:14,890
OK.

243
00:16:15,120 --> 00:16:19,540
So here I referred to this object intent image that said type.

244
00:16:19,800 --> 00:16:20,360
OK.

245
00:16:20,580 --> 00:16:26,560
So here I want to actually open the photos application image slash start.

246
00:16:26,640 --> 00:16:27,130
OK.

247
00:16:27,210 --> 00:16:32,550
So I need to put these values in so the double quotes and here are because I want to actually get an

248
00:16:32,550 --> 00:16:37,140
image from my Actually for my photos application in my device.

249
00:16:37,140 --> 00:16:41,280
I need to actually call this summer if it starts activity for resolved.

250
00:16:41,580 --> 00:16:41,950
OK.

251
00:16:41,970 --> 00:16:47,000
This is very important because we want to receive an image from my photos application in my device.

252
00:16:47,130 --> 00:16:52,470
I need to call the Smurfette start activity for resolved Internet image image request court.

253
00:16:52,650 --> 00:16:57,840
So as you can see here in our main activity class I created this constant.

254
00:16:57,970 --> 00:16:59,680
OK this is our image request.

255
00:16:59,870 --> 00:17:00,690
1000.

256
00:17:00,810 --> 00:17:01,410
OK.

257
00:17:01,680 --> 00:17:06,340
And this is our image request code that is related only to this image.

258
00:17:06,350 --> 00:17:11,970
I need you anymore object because whenever the user clicks on that image it's going to open the photo

259
00:17:12,030 --> 00:17:16,970
application and then we can actually select an image and then we can receive that image.

260
00:17:16,980 --> 00:17:23,700
And this is really important that we have a unique request code for that because there are components

261
00:17:23,760 --> 00:17:24,740
on my screen.

262
00:17:24,870 --> 00:17:31,530
May want to access the photos application but this requires code that determines the images that are

263
00:17:31,530 --> 00:17:33,830
actually received by clicking on this.

264
00:17:33,840 --> 00:17:40,630
I am the animal is going to be actually specifically for this I am the animal image for you.

265
00:17:40,800 --> 00:17:47,070
And here I actually tighten break so that it's going to actually break out of this sweet statement.

266
00:17:47,070 --> 00:17:55,620
So here because you want to actually want to receive an image from the photos application by clicking

267
00:17:55,710 --> 00:18:02,070
on this or by clicking on this image of you need to actually overwrite the activity of the activity

268
00:18:02,070 --> 00:18:02,950
results method.

269
00:18:03,000 --> 00:18:07,710
So now as you can see our application is actually running on this emulator.

270
00:18:07,710 --> 00:18:13,470
So let's actually click on this image here and now as you can see our photos application is actually

271
00:18:13,470 --> 00:18:13,940
opened.

272
00:18:13,950 --> 00:18:17,420
And I can actually select an image for here.

273
00:18:17,490 --> 00:18:24,090
So now I can actually select for example just this internal storage.

274
00:18:24,090 --> 00:18:29,370
So just a click on the menu he had menu button and then click on this internal storage.

275
00:18:29,370 --> 00:18:36,990
And here I can actually select these pictures directory as you can see here we have this we have these

276
00:18:36,990 --> 00:18:41,490
pictures directory and here inside these animal images.

277
00:18:41,490 --> 00:18:42,840
I have these images here.

278
00:18:42,840 --> 00:18:43,390
OK.

279
00:18:43,530 --> 00:18:46,580
So here I can just select the spirit that PND.

280
00:18:46,800 --> 00:18:49,610
And now you can see we don't see that image here.

281
00:18:49,620 --> 00:18:50,200
OK.

282
00:18:50,250 --> 00:18:56,370
So that's why we need to actually override the unactivated results method because we want to receive

283
00:18:56,580 --> 00:18:59,750
an image from the photos application in our device.

284
00:18:59,910 --> 00:19:04,920
So in order to do that I actually pasted some of it here and now I'm going to explain to you what's

285
00:19:04,920 --> 00:19:06,220
going on here.

286
00:19:06,240 --> 00:19:11,520
So as you can see here before the access modifier of this method is protected so only the subclasses

287
00:19:12,480 --> 00:19:20,880
of the so so so only are the subclasses of the activity class can actually can actually overwrite Smurfette

288
00:19:20,910 --> 00:19:22,370
or access this method.

289
00:19:22,650 --> 00:19:28,770
So the the the access modifier is protected and the return type is void.

290
00:19:28,770 --> 00:19:31,370
So this means that this is going to return nothing.

291
00:19:31,410 --> 00:19:32,140
OK.

292
00:19:32,520 --> 00:19:35,440
And the name of the Smurfette is an activity result.

293
00:19:35,640 --> 00:19:37,620
And we have free arguments here.

294
00:19:37,770 --> 00:19:38,350
OK.

295
00:19:38,430 --> 00:19:40,140
It requires code.

296
00:19:40,260 --> 00:19:45,520
OK so this is the request code an e-mail request quote that I actually declared here.

297
00:19:45,600 --> 00:19:49,130
As you can see Final in our image request code 1000.

298
00:19:49,140 --> 00:19:50,000
OK.

299
00:19:50,370 --> 00:19:55,510
And here as you can see into request code in result code in intent data.

300
00:19:55,740 --> 00:19:57,710
OK so we have these arguments.

301
00:19:57,750 --> 00:20:04,230
So whenever we want to actually receive some data from another application or from another activity

302
00:20:04,470 --> 00:20:07,530
we need to override this on activity resolved.

303
00:20:07,530 --> 00:20:07,810
OK.

304
00:20:07,830 --> 00:20:14,970
And then we also need to actually open that activity or open that application or by using this method

305
00:20:15,090 --> 00:20:16,880
start activity for result.

306
00:20:16,920 --> 00:20:24,270
Ok not this start activity start activity for result and then we need to pass the intent and our request

307
00:20:24,270 --> 00:20:24,660
code.

308
00:20:24,660 --> 00:20:25,140
OK.

