1
00:00:00,300 --> 00:00:05,610
Hire everyone in this theater you are really going to go ahead and create another Android application.

2
00:00:05,700 --> 00:00:08,760
So just click on this start in your Android studio project.

3
00:00:08,820 --> 00:00:09,330
OK.

4
00:00:09,330 --> 00:00:16,110
Now we need to actually specify a name for our Android application so app to anyone and then click on

5
00:00:16,590 --> 00:00:25,870
next year choose API 16 Android 4.1 Jelly Bean for minimum STK next Blancher activity next.

6
00:00:26,070 --> 00:00:28,980
And here you can actually see what an activity name lay out.

7
00:00:28,980 --> 00:00:31,530
Name title and I mean your resource name.

8
00:00:31,530 --> 00:00:32,640
And then we can finish.

9
00:00:32,700 --> 00:00:33,230
OK.

10
00:00:33,300 --> 00:00:39,330
Now let's actually select this hell over the text here and then press on delete key on your keyboard

11
00:00:39,930 --> 00:00:42,270
and then double click on this folder here.

12
00:00:42,400 --> 00:00:47,190
Lay out and then click on this activity underline main that is in the mail.

13
00:00:47,190 --> 00:00:52,510
And then here choose this up in Action button here and then press on delete key on your keyboard.

14
00:00:52,560 --> 00:00:53,090
OK.

15
00:00:53,130 --> 00:00:59,160
Now let's actually select this hell over the text here and then press on delete key on your keyboard

16
00:00:59,760 --> 00:01:05,490
and then double click on this folder here lay out and then double click on this activity underline main

17
00:01:05,490 --> 00:01:06,740
that is in the mail.

18
00:01:07,020 --> 00:01:13,330
And then here choose this in action button here and then press until it on your keyboard.

19
00:01:13,350 --> 00:01:18,810
So now let's actually go back inside this content underline made that example.

20
00:01:18,810 --> 00:01:22,890
And here we can actually design the user interface of our application.

21
00:01:22,890 --> 00:01:23,380
OK.

22
00:01:23,580 --> 00:01:30,160
So first of all we need to actually track our linearly out vertical into these are relatively out here.

23
00:01:30,210 --> 00:01:37,050
So just put it at the center of this relatively out and then we need to actually put a scroll view into

24
00:01:37,050 --> 00:01:39,420
this nearly as vertical here.

25
00:01:39,450 --> 00:01:45,160
So as you can see here inside these containers fall there we have a vertical scroll wheel here OK.

26
00:01:45,210 --> 00:01:51,670
So just select this scroll view here and then put it inside this linearly held vertical here.

27
00:01:51,690 --> 00:01:52,590
OK.

28
00:01:53,010 --> 00:01:59,850
And now I want to actually track and linearly out vertical into this scroll view here.

29
00:02:00,000 --> 00:02:05,230
OK so as you can see this scroll you can only accept one direct child.

30
00:02:05,520 --> 00:02:10,750
So now I have a linearly held vertical inside this scroll view here.

31
00:02:10,800 --> 00:02:11,360
OK.

32
00:02:11,570 --> 00:02:12,300
OK.

33
00:02:12,390 --> 00:02:19,190
Now let's actually track our large takes view into these linearly out vertical here.

34
00:02:19,630 --> 00:02:20,630
OK.

35
00:02:20,750 --> 00:02:22,910
And double click and this takes you here.

36
00:02:23,220 --> 00:02:27,490
And for the text just typing here sport name.

37
00:02:27,680 --> 00:02:28,340
OK.

38
00:02:28,710 --> 00:02:36,180
And then press Enter key on your keyboard and actually drag and other large takes you into this linearly

39
00:02:36,180 --> 00:02:42,630
of two article here and double click on this text view here and delete the text of this text view.

40
00:02:42,990 --> 00:02:48,220
And for the ID just type in here TXI the sports name.

41
00:02:48,390 --> 00:02:50,700
OK let's do it right.

42
00:02:50,700 --> 00:02:57,080
Let's actually select this sport name takes you here again and put a colon at the end of this text here.

43
00:02:57,100 --> 00:03:04,250
OK so now let's actually track and order large takes into this linearly and vertical here.

44
00:03:04,620 --> 00:03:06,090
Double click on this takes you.

45
00:03:06,190 --> 00:03:06,820
OK.

46
00:03:07,050 --> 00:03:11,090
And for the text just type in here scores.

47
00:03:11,230 --> 00:03:19,740
OK colon and drag and other large it takes you into this are linearly outwards equal here double return

48
00:03:19,760 --> 00:03:23,220
it and delete the text of this text view.

49
00:03:23,400 --> 00:03:29,190
And for the ID again just typing here ticks the scores.

50
00:03:29,630 --> 00:03:30,700
OK.

51
00:03:31,170 --> 00:03:37,010
And let's actually write another large text view into this linearly outworld equal here.

52
00:03:37,110 --> 00:03:38,030
OK.

53
00:03:38,100 --> 00:03:40,160
And double click on the stakes here.

54
00:03:40,440 --> 00:03:45,020
And for the text just type in here scores average.

55
00:03:45,900 --> 00:03:54,690
OK colon and drag and other large takes you into this linearly afterwards they call OK into this linearly

56
00:03:54,690 --> 00:03:55,440
aesthetical here.

57
00:03:55,440 --> 00:03:55,940
OK.

58
00:03:56,160 --> 00:04:00,420
And double click on the sticks view and delete the text of this takes you here.

59
00:04:00,420 --> 00:04:09,950
And for the ID just type in here TXI the scores average AK.

60
00:04:10,000 --> 00:04:15,640
Now let's actually track a large takes you into this linearly as vertical here.

61
00:04:15,890 --> 00:04:17,120
Double click on it.

62
00:04:17,310 --> 00:04:22,660
And for the text just type in here highest score.

63
00:04:22,720 --> 00:04:23,700
OK.

64
00:04:24,650 --> 00:04:31,060
Colon and drag and other large takes you into this linear linearly or equal here.

65
00:04:31,160 --> 00:04:34,990
Double click on it and deletes the text of this text view.

66
00:04:35,270 --> 00:04:38,750
And for the ID just type in here TXI the highest score.

67
00:04:38,780 --> 00:04:39,090
Ok

68
00:04:41,790 --> 00:04:46,150
ok and that person enter key on your keyboard.

69
00:04:46,300 --> 00:04:51,760
Now let's actually track and other large text view into this linearly of 30 quid here.

70
00:04:52,000 --> 00:04:53,630
Double click on it for the text.

71
00:04:53,650 --> 00:04:56,940
Just type in here the lowest score lowest score.

72
00:04:57,270 --> 00:04:58,060
OK.

73
00:05:01,520 --> 00:05:07,400
And press Enter key on your keyboard and now it's actually drag and other large takes you into this

74
00:05:07,640 --> 00:05:09,650
linearly alphabetical here.

75
00:05:09,710 --> 00:05:16,430
Double click on it delete the text of this text view and for the text and for the ID just taken here

76
00:05:16,430 --> 00:05:18,360
takes the lowest score.

77
00:05:18,380 --> 00:05:19,060
OK.

78
00:05:21,460 --> 00:05:27,160
And then press Enter key on your keyboard that's actually select this lowest score here as you can see

79
00:05:27,550 --> 00:05:29,890
and put a colon at the end of this text here.

80
00:05:29,920 --> 00:05:30,820
OK.

81
00:05:31,150 --> 00:05:34,810
So now the design of our use and interface is actually finished.

82
00:05:34,810 --> 00:05:40,570
So now let's actually go back and say this Me activity the java file here and now is to actually delete

83
00:05:40,930 --> 00:05:44,170
these lines of code that I should related to the Options menu.

84
00:05:44,400 --> 00:05:44,930
OK.

85
00:05:45,040 --> 00:05:50,500
And then delete this block of code that is related to the actually floating floating an action button

86
00:05:50,530 --> 00:05:50,780
here.

87
00:05:50,800 --> 00:05:51,710
OK.

88
00:05:52,180 --> 00:05:54,890
Now we can actually put our own Ancoats here.

89
00:05:55,000 --> 00:05:58,520
Now if you want to actually create another class here.

90
00:05:58,540 --> 00:05:59,010
OK.

91
00:05:59,140 --> 00:06:04,000
So just click on this file here new and then click on Java class OK.

92
00:06:04,180 --> 00:06:07,090
And for the class name just type in here sport.

93
00:06:07,490 --> 00:06:08,080
OK.

94
00:06:08,170 --> 00:06:10,160
And then click on OK here.

95
00:06:10,210 --> 00:06:13,440
So as you can see here this is our class sport here.

96
00:06:13,450 --> 00:06:13,970
OK.

97
00:06:14,110 --> 00:06:20,190
Now let's actually create two instance variables inside these sports class here.

98
00:06:20,200 --> 00:06:20,920
OK.

99
00:06:21,250 --> 00:06:26,950
And as you can see here I didn't instantiate these are these two instance variables.

100
00:06:26,950 --> 00:06:27,410
OK.

101
00:06:27,490 --> 00:06:33,430
The first instance variable is actually of types 3 and the name of this instance variable is sport name

102
00:06:33,460 --> 00:06:34,040
OK.

103
00:06:34,300 --> 00:06:38,660
And the second instance the above is actually of type integer array.

104
00:06:38,740 --> 00:06:39,310
OK.

105
00:06:39,490 --> 00:06:43,320
And the name of this instance variable is actually calls.

106
00:06:43,330 --> 00:06:47,210
OK so now let's actually create a constructor here.

107
00:06:47,230 --> 00:06:50,400
So as you can see here this is our constructor.

108
00:06:50,530 --> 00:06:51,350
OK.

109
00:06:51,470 --> 00:06:54,140
And the access modifier as you can see is public.

110
00:06:54,400 --> 00:07:01,040
And the name of the current of the constructor must be this the same as the name of this class here.

111
00:07:01,060 --> 00:07:05,690
As you can see and this constructiveness actually accepts two arguments.

112
00:07:05,820 --> 00:07:10,340
OK as you can see that the first argument is actually of type string.

113
00:07:10,480 --> 00:07:11,980
OK sports name.

114
00:07:12,250 --> 00:07:16,450
And the second argument as you can see as against C is of type integers.

115
00:07:16,600 --> 00:07:17,180
OK.

116
00:07:17,260 --> 00:07:19,630
And the name of this argument is score's.

117
00:07:19,630 --> 00:07:20,190
OK.

118
00:07:20,500 --> 00:07:27,880
So now inside of this constructor we actually instantiated these two instance variables at variables

119
00:07:27,900 --> 00:07:28,600
as you can see here.

120
00:07:28,600 --> 00:07:29,100
OK.

121
00:07:29,320 --> 00:07:37,000
This that sports name assignments operator sport name the start scores assignments operator scores.

122
00:07:37,020 --> 00:07:45,870
OK so now let's actually create a set here and a getter for this sport named instance variable here.

123
00:07:45,880 --> 00:07:46,640
OK.

124
00:07:47,110 --> 00:07:52,360
So as you can see here these two Misfit's as you can see is actually the set here and I'll get here

125
00:07:52,540 --> 00:07:55,670
for these sports named instance variable OK.

126
00:07:55,870 --> 00:07:58,650
So the first Meffert as you can see said the sports name.

127
00:07:58,750 --> 00:08:05,560
OK sports name as you can see it the inside of this method you are actually assigning the value of this

128
00:08:05,650 --> 00:08:08,840
argument to the value of this instance variable.

129
00:08:08,860 --> 00:08:09,460
OK.

130
00:08:09,670 --> 00:08:14,920
And this is actually I get here and this method actually returns a value of types 3.

131
00:08:14,980 --> 00:08:18,350
As you can see the value of this sport name instance value but.

132
00:08:18,370 --> 00:08:19,110
OK.

133
00:08:19,570 --> 00:08:25,250
Now let's actually create a method called get the minimum value.

134
00:08:25,390 --> 00:08:26,200
OK.

135
00:08:26,470 --> 00:08:28,440
So as you can see here this is our method.

136
00:08:28,540 --> 00:08:28,870
OK.

137
00:08:28,870 --> 00:08:36,040
That I actually pasted here and the access modifier of this method is public and the return type of

138
00:08:36,040 --> 00:08:37,570
this method is int.

139
00:08:37,690 --> 00:08:44,360
And this means that if it is going to actually return a value of type integer.

140
00:08:44,440 --> 00:08:50,850
OK the name of this Meffert is actually get the minimum value and this method does not actually accept

141
00:08:50,910 --> 00:08:51,550
any argument.

142
00:08:51,570 --> 00:08:52,340
OK.

143
00:08:52,610 --> 00:08:58,410
And inside of these as you can see these are are actually implementations inside of this method.

144
00:08:58,410 --> 00:09:05,640
And here we actually created a variable of type integer lowest score and we assumed that the value that

145
00:09:05,640 --> 00:09:09,700
is actually the inside of the index zero of these scores.

146
00:09:10,080 --> 00:09:15,910
As you can see we declared this array in line 10 inside of this sport class here.

147
00:09:15,930 --> 00:09:16,520
OK.

148
00:09:16,830 --> 00:09:23,280
We assumed that the value that is actually inside of the index 0 of this Ari is actually the lowest

149
00:09:23,370 --> 00:09:23,760
score.

150
00:09:23,760 --> 00:09:24,530
OK.

151
00:09:24,870 --> 00:09:30,910
And here we actually created a for loop here as you can see for end score scores.

152
00:09:31,020 --> 00:09:35,460
As you can see it's going to iterate over the values that are that are actually inside of the scores

153
00:09:35,670 --> 00:09:36,250
array.

154
00:09:36,360 --> 00:09:37,230
OK.

155
00:09:37,680 --> 00:09:42,560
And that is going to assign those values one by one to this score.

156
00:09:43,190 --> 00:09:44,010
Valuable here.

157
00:09:44,010 --> 00:09:50,150
As you can see after each execution of this for loop is going I should sign that specific value inside

158
00:09:50,160 --> 00:09:53,620
of that specific index to this score variable.

159
00:09:53,760 --> 00:10:00,690
And here inside of this if statement as you can see inside of the practices of this statement I created

160
00:10:00,690 --> 00:10:04,760
a condition which says score less than lowest score.

161
00:10:04,770 --> 00:10:05,250
OK.

162
00:10:05,370 --> 00:10:07,780
So if the value of this is Caller-ID.

163
00:10:07,840 --> 00:10:08,120
OK.

164
00:10:08,130 --> 00:10:16,110
As you can see is less than the value of the lowest score as you can see here then our lowest score

165
00:10:16,200 --> 00:10:17,680
assignment operator score.

166
00:10:17,700 --> 00:10:18,190
OK.

167
00:10:18,270 --> 00:10:24,210
The value of this score variable is going to be assigned to the lowest score variable here.

168
00:10:24,210 --> 00:10:24,710
OK.

169
00:10:24,900 --> 00:10:31,610
And at the end you are actually returning the value of this lowest score variable OK.

