1
00:00:00,290 --> 00:00:06,260
Hire everyone in this theater really you're going to go ahead and create R12 Android application.

2
00:00:06,270 --> 00:00:10,080
So first we need to actually click on these stars and your Android studio project.

3
00:00:10,080 --> 00:00:15,080
And here we need to actually specify a name for our application of 12.

4
00:00:15,420 --> 00:00:21,900
And then here you can actually specify a company domain package name and a project location for your

5
00:00:22,050 --> 00:00:24,900
project and then click on next here.

6
00:00:25,000 --> 00:00:30,740
Choose Apr. 16 Android 4.1 Jelly Bean and iPhone and tablets.

7
00:00:30,750 --> 00:00:31,370
Okay.

8
00:00:31,830 --> 00:00:35,770
And then next to choose plant activity next.

9
00:00:36,010 --> 00:00:37,920
And here don't change anything.

10
00:00:37,950 --> 00:00:39,210
And then click on finish.

11
00:00:39,330 --> 00:00:42,060
So here are the latest this hellova or text view.

12
00:00:42,150 --> 00:00:42,700
OK.

13
00:00:42,960 --> 00:00:48,900
And then double clicking on this arrest folder here and then double click on this layout folder and

14
00:00:48,900 --> 00:00:51,630
then double click on this activity made that example.

15
00:00:51,780 --> 00:00:54,870
And then here to this floating action button.

16
00:00:54,870 --> 00:00:58,450
And then let's go back and say this content underline made that example.

17
00:00:58,560 --> 00:01:04,100
And here it's actually it's actually dragging a linearly out of vertical.

18
00:01:04,100 --> 00:01:09,210
Inside this linear inside this relatively out here at the center of the screen.

19
00:01:09,240 --> 00:01:09,950
OK.

20
00:01:10,200 --> 00:01:17,520
And then let's actually write a linearly out horizontal inside these linearly out of vertical and here

21
00:01:17,940 --> 00:01:24,380
let's actually write our large text view into this linearly or horizontal double click on it.

22
00:01:24,660 --> 00:01:27,460
And for the text just type in here index.

23
00:01:28,020 --> 00:01:28,650
OK.

24
00:01:28,920 --> 00:01:35,940
And let's actually write another text view into this linearly out horizontal and double click on it.

25
00:01:35,940 --> 00:01:39,150
And for the text just they've been here right to you.

26
00:01:39,540 --> 00:01:47,850
And as you can see here I didn't assign any ID to both of these text views because I don't want to interact

27
00:01:48,120 --> 00:01:49,100
with these text.

28
00:01:49,150 --> 00:01:50,510
And from my java code.

29
00:01:50,550 --> 00:01:51,010
OK.

30
00:01:51,090 --> 00:01:53,210
I just want these text to be here.

31
00:01:53,340 --> 00:02:01,170
Click on this first text view here and then for the Left Feet assign the values 0 and then as you can

32
00:02:01,170 --> 00:02:04,090
see here we've got to wait here.

33
00:02:04,110 --> 00:02:04,730
OK.

34
00:02:04,800 --> 00:02:08,830
So for the lay out of 8 just assign the values 0.5.

35
00:02:09,020 --> 00:02:09,520
OK.

36
00:02:09,570 --> 00:02:16,050
So here as you can see I assumed that the Veith of these are linearly Hollys on toward each one.

37
00:02:16,200 --> 00:02:24,240
And then I actually assigned the value 0 for the layout of each of these text you and I assigned the

38
00:02:24,240 --> 00:02:27,750
value 0.5 to the lay out rate of this.

39
00:02:27,750 --> 00:02:28,570
I take you here.

40
00:02:28,590 --> 00:02:29,060
OK.

41
00:02:29,130 --> 00:02:36,270
Let's actually click on these other takes you here again for the layout we assign the value 0 and then

42
00:02:36,270 --> 00:02:41,140
for the Left wait assigned a value 0.5.

43
00:02:41,160 --> 00:02:42,340
So as you can see here.

44
00:02:42,360 --> 00:02:46,210
So these two textbooks are actually reading this linearly horizontal.

45
00:02:46,270 --> 00:02:46,690
OK.

46
00:02:46,710 --> 00:02:53,250
These two text views are actually taking a half of the V of this linearly out horizontal OK as you can

47
00:02:53,250 --> 00:02:53,900
see here.

48
00:02:54,180 --> 00:02:58,360
I assigned the value 0 to both of these takes views.

49
00:02:58,600 --> 00:03:07,450
OK for the left and I assigned a value 0.5 to both of these two they lay out the weight of these tissues

50
00:03:07,470 --> 00:03:07,740
here.

51
00:03:07,740 --> 00:03:08,230
OK.

52
00:03:08,280 --> 00:03:13,720
These textbooks are going to actually take only a half of the Viets of these linearly out horizontal.

53
00:03:13,800 --> 00:03:15,390
So hopefully that makes sense.

54
00:03:15,390 --> 00:03:21,830
So now let's actually track a linearly out horizontal into this linearly outwards to Clokey and below

55
00:03:21,860 --> 00:03:24,280
these linearly out horizontal here.

56
00:03:24,280 --> 00:03:25,080
Okay.

57
00:03:25,560 --> 00:03:28,550
And as you can see here this is our linearly or horizontal.

58
00:03:28,710 --> 00:03:35,340
So now I want to actually put a linearly out vertical into these linearly or horizontal OK.

59
00:03:35,520 --> 00:03:41,360
And let's actually like another linearly out whereas they call this linearly out horizontal.

60
00:03:41,750 --> 00:03:48,480
OK so now I want to actually select this first linearly out of vertical here as you can see inside this

61
00:03:48,480 --> 00:03:54,730
component 3 section and for the layout of it which again assigned values 0.

62
00:03:54,960 --> 00:03:56,240
OK.

63
00:03:57,090 --> 00:04:01,600
And then for the layout weight assigned values 0.5.

64
00:04:01,890 --> 00:04:02,580
OK.

65
00:04:02,850 --> 00:04:09,370
Again select this segment are linearly elsewhere the call for the out we assign the value 0.

66
00:04:09,510 --> 00:04:10,590
And for the lay out.

67
00:04:10,600 --> 00:04:11,960
Wait wait.

68
00:04:11,960 --> 00:04:14,190
I assigned a value 0.5.

69
00:04:14,250 --> 00:04:20,280
So as you can see here these two are linear layouts are actually taking a half of the width of these

70
00:04:20,580 --> 00:04:22,730
linearly out horizontal Okay.

71
00:04:22,740 --> 00:04:29,860
So as you can see here I actually assumed that each of these lean linearly horizontally is 1 or 100.

72
00:04:29,940 --> 00:04:36,240
And then these two takes views are going to actually take only half of that space half of the weight

73
00:04:36,300 --> 00:04:38,180
of these linearly held horizontally.

74
00:04:38,190 --> 00:04:42,350
Half of the Viets of this linearly out horizontal as you can see here.

75
00:04:42,480 --> 00:04:46,940
So I assigned the value 0.5 to the length weight of these two takes views.

76
00:04:46,950 --> 00:04:48,320
So hopefully that makes sense.

77
00:04:48,390 --> 00:04:55,350
OK now let's actually drag a large takes you into these first linearly alphabetical that is inside of

78
00:04:55,350 --> 00:04:57,130
these linearly or horizontal.

79
00:04:57,130 --> 00:04:57,420
OK.

80
00:04:57,450 --> 00:05:02,350
So you can actually put it here as you can see and double click on this text view.

81
00:05:02,370 --> 00:05:08,010
And let's actually delete the text of this text view for the ID just type anti-X the index.

82
00:05:08,170 --> 00:05:09,410
OK that's actually right.

83
00:05:09,460 --> 00:05:16,660
And on the large takes you into this segment linearly vertical that is actually inside of this linearly

84
00:05:16,660 --> 00:05:17,840
or horizontal OK.

85
00:05:18,040 --> 00:05:21,690
So just put it here as you can see inside this component section.

86
00:05:21,700 --> 00:05:28,120
So I did a mistake and I didn't actually put this linear takes you inside of these linearly or vertical.

87
00:05:28,120 --> 00:05:32,670
So I can just drag it inside these linearly out vertical.

88
00:05:33,040 --> 00:05:33,700
OK.

89
00:05:34,000 --> 00:05:39,910
So double click on the sixth view and delete it to take the text of this text you and for the ID just

90
00:05:39,910 --> 00:05:44,320
type in here anti-X the value OK.

91
00:05:44,750 --> 00:05:50,570
So now let's actually go back and say this main activity that a file and you can just tap in order to

92
00:05:50,570 --> 00:05:52,350
make this editor area wider.

93
00:05:52,460 --> 00:05:53,380
OK.

94
00:05:53,470 --> 00:05:57,680
And these are lines of code that are actually related to the Options menu.

95
00:05:57,980 --> 00:06:01,180
And here the latest line of code and this curly brace.

96
00:06:01,190 --> 00:06:01,880
OK.

97
00:06:02,270 --> 00:06:08,620
And here are the latest block of code that is actually related to the flat to the floating action button.

98
00:06:08,920 --> 00:06:12,560
Ok so now we can actually put our own codes here.

99
00:06:12,560 --> 00:06:17,110
So in this tutorial and in this application I want to talk about areas in Java.

100
00:06:17,210 --> 00:06:20,720
OK Java provides a data structure.

101
00:06:20,720 --> 00:06:27,750
The tree which stores a fixed size or sequential collection of elements of the same type.

102
00:06:27,850 --> 00:06:35,710
OK so we can actually put some elements that are actually of the same type in one place and we can refer

103
00:06:35,720 --> 00:06:36,260
to them.

104
00:06:36,260 --> 00:06:41,780
So for example imagine that you want to actually create a hundred integer value Burleigh's if you want

105
00:06:41,780 --> 00:06:42,700
to create that.

106
00:06:42,740 --> 00:06:45,440
I can't just type in here ain't number one.

107
00:06:45,500 --> 00:06:49,170
For example number 1 and so on and not to.

108
00:06:49,310 --> 00:06:50,710
For example number two.

109
00:06:50,960 --> 00:06:52,980
And so on this is the wrong way.

110
00:06:53,090 --> 00:07:00,240
OK if I want to create a hundred integer numbers or if I want to create 100 into Gerardia else and if

111
00:07:00,240 --> 00:07:09,260
I want to refer to those values I can just create an array and store those 100 values of integer values

112
00:07:09,320 --> 00:07:10,270
in that area.

113
00:07:10,390 --> 00:07:10,810
OK.

114
00:07:10,880 --> 00:07:18,980
Arrays only store are actually a fixed size sequential collection of elements of the same type K.

115
00:07:19,280 --> 00:07:22,280
So an array is used to store a collection of data.

116
00:07:22,340 --> 00:07:25,600
Let's actually create some examples and then it will make sense to you.

117
00:07:25,610 --> 00:07:26,130
OK.

118
00:07:26,480 --> 00:07:30,620
So for example I want to actually create an array of integers.

119
00:07:30,630 --> 00:07:31,430
OK.

120
00:07:32,010 --> 00:07:32,610
OK.

121
00:07:32,900 --> 00:07:37,850
And then I need to actually putting in a pair of brackets as you can see after this type.

122
00:07:37,850 --> 00:07:41,680
So first of all I actually specify the type of my at a integer.

123
00:07:41,750 --> 00:07:42,340
OK.

124
00:07:42,470 --> 00:07:46,510
So this arrow is going to actually accept integer numbers only.

125
00:07:46,690 --> 00:07:47,130
OK.

126
00:07:47,330 --> 00:07:54,830
And here I actually put in a pair of brackets here to specify that I am going to actually create an

127
00:07:54,860 --> 00:07:56,050
array object.

128
00:07:56,230 --> 00:07:56,700
OK.

129
00:07:56,810 --> 00:08:03,920
And here I need to actually specify a name for our heavy for example integer numbers.

130
00:08:04,580 --> 00:08:06,860
OK this is the name of my arii.

131
00:08:07,040 --> 00:08:07,710
OK.

132
00:08:08,060 --> 00:08:14,140
And here I need to actually put in an assignment operator here Miyu.

133
00:08:14,540 --> 00:08:17,200
OK so I want to actually instantiate that this way.

134
00:08:17,210 --> 00:08:17,690
OK.

135
00:08:17,810 --> 00:08:19,760
By using this new keyboard.

136
00:08:19,760 --> 00:08:25,570
And then again I need to refer to the type of my Arey end and here as you can see again I'm putting

137
00:08:25,570 --> 00:08:31,910
in a pair of brackets here and inside of these brackets I need to actually specify what would be the

138
00:08:31,910 --> 00:08:34,100
size of my Arey OK.

139
00:08:34,220 --> 00:08:38,810
So for example I want to actually create array of 100 numbers.

140
00:08:38,840 --> 00:08:39,250
OK.

141
00:08:39,350 --> 00:08:45,060
So I wanted this array to actually accept a hundred integer numbers.

142
00:08:45,080 --> 00:08:47,360
So here I can actually specify that size.

143
00:08:47,450 --> 00:08:53,620
So now as you can see here we just created an array and instantiated this array.

144
00:08:53,720 --> 00:08:59,150
OK but we didn't assign any value to the indexes of this alley.

145
00:08:59,270 --> 00:09:07,610
We just here specify that this a is going to have actually a hundred places a hundred empty places for

146
00:09:07,670 --> 00:09:08,700
integer numbers.

147
00:09:08,870 --> 00:09:11,980
But we didn't assign any value to those places yet.

148
00:09:11,990 --> 00:09:15,320
So now we want to actually assign some values to these arrays.

149
00:09:15,380 --> 00:09:19,420
So remember in programming we actually count from number 0.

150
00:09:19,640 --> 00:09:21,110
OK so this is very important.

151
00:09:21,110 --> 00:09:22,910
Now I want to actually assign.

152
00:09:22,910 --> 00:09:28,760
I want to actually assign a value to the index zero of these very first of all in order to assign a

153
00:09:28,760 --> 00:09:30,830
value to the index zero of this array.

154
00:09:30,830 --> 00:09:35,370
First of what I need to actually refer to the name of this array integer numbers.

155
00:09:35,730 --> 00:09:36,570
OK.

156
00:09:36,810 --> 00:09:38,550
Brackets are paramount brackets.

157
00:09:38,570 --> 00:09:44,590
And here I need to actually specify the index that you want to actually specify a value to it.

158
00:09:44,600 --> 00:09:45,000
OK.

159
00:09:45,110 --> 00:09:51,110
For example index 0 and here I need to actually putting an assignment operator again.

160
00:09:51,260 --> 00:09:56,340
For example I want to assign the value of twenty four to the index zero of this area.

161
00:09:56,390 --> 00:09:56,790
OK.

