﻿1
00:00:01,110 --> 00:00:02,160
‫Instructor: Hi.

2
00:00:02,160 --> 00:00:05,430
‫Within this lecture we are going to see the overview

3
00:00:05,430 --> 00:00:07,530
‫of Android Studio.

4
00:00:07,530 --> 00:00:09,540
‫Now we have installed Android Studio

5
00:00:09,540 --> 00:00:11,820
‫and we have our first project.

6
00:00:11,820 --> 00:00:14,910
‫We have already seen this screen, right.

7
00:00:14,910 --> 00:00:18,480
‫On the right hand side, we see the codes, we see the design.

8
00:00:18,480 --> 00:00:20,430
‫On the bottom side, we see the logs

9
00:00:20,430 --> 00:00:24,120
‫and on the left side we see the files and folders.

10
00:00:24,120 --> 00:00:26,220
‫But now let's deep dive into this

11
00:00:26,220 --> 00:00:29,190
‫because we're going to use those a lot.

12
00:00:29,190 --> 00:00:32,640
‫So over here we see an Android think

13
00:00:32,640 --> 00:00:35,790
‫and we can make it into a project view.

14
00:00:35,790 --> 00:00:39,670
‫And within the project we you see all the files and folders

15
00:00:39,670 --> 00:00:42,570
‫created for your project,

16
00:00:42,570 --> 00:00:45,690
‫but that's not what we need generally.

17
00:00:45,690 --> 00:00:47,910
‫We need this Android view.

18
00:00:47,910 --> 00:00:48,780
‫Okay.

19
00:00:48,780 --> 00:00:50,910
‫So within this Android view

20
00:00:50,910 --> 00:00:54,720
‫we see the most common used files and folders

21
00:00:54,720 --> 00:00:59,720
‫so that we can browse more efficiently over here.

22
00:00:59,970 --> 00:01:04,380
‫So inside of our Java folder we have MainActivity.java

23
00:01:04,380 --> 00:01:08,550
‫and this is the codes for our activity.

24
00:01:08,550 --> 00:01:10,110
‫Remember what an activity is.

25
00:01:10,110 --> 00:01:12,960
‫It's a screen that users interact.

26
00:01:12,960 --> 00:01:17,940
‫So we have this resources file folder over here.

27
00:01:17,940 --> 00:01:20,553
‫Under layout folder you see ActivityMain.xml.

28
00:01:23,250 --> 00:01:26,430
‫So this is the file that we edit

29
00:01:26,430 --> 00:01:28,628
‫that we do the design for main activity.

30
00:01:28,628 --> 00:01:31,467
‫And this is what users will see that they-

31
00:01:31,467 --> 00:01:35,010
‫This is what they will be interacting with.

32
00:01:35,010 --> 00:01:38,250
‫When we talk about activity, you can visualize it

33
00:01:38,250 --> 00:01:40,950
‫by designing this activity main.

34
00:01:40,950 --> 00:01:42,690
‫And you have two tabs over here.

35
00:01:42,690 --> 00:01:44,970
‫One is text and one is design.

36
00:01:44,970 --> 00:01:48,000
‫So if you go to text, you can see the code.

37
00:01:48,000 --> 00:01:51,660
‫And if you go to design, you can actually see the design.

38
00:01:51,660 --> 00:01:54,570
‫For example, you have some kind of components over here,

39
00:01:54,570 --> 00:01:55,770
‫like a button.

40
00:01:55,770 --> 00:02:00,300
‫You can just drag and drop button to your layout like this

41
00:02:00,300 --> 00:02:02,730
‫and you can design your app.

42
00:02:02,730 --> 00:02:04,170
‫So this is very simple.

43
00:02:04,170 --> 00:02:07,590
‫We're gonna go into that later on.

44
00:02:07,590 --> 00:02:12,590
‫And remember, you can reach the settings from here

45
00:02:13,170 --> 00:02:15,090
‫and you can change whatever you want

46
00:02:15,090 --> 00:02:17,580
‫like fonts and colors and everything.

47
00:02:17,580 --> 00:02:20,550
‫If you are not satisfied with your current look,

48
00:02:20,550 --> 00:02:23,490
‫you can change everything from the settings

49
00:02:23,490 --> 00:02:27,030
‫or preferences of the Android Studio.

50
00:02:27,030 --> 00:02:29,100
‫So that's the general overview.

51
00:02:29,100 --> 00:02:31,860
‫You can open and close the tabs

52
00:02:31,860 --> 00:02:36,180
‫by clicking on here or there like this, okay.

53
00:02:36,180 --> 00:02:40,050
‫And on the bottom side we have this built showing on.

54
00:02:40,050 --> 00:02:44,130
‫So we have this logcat, and this is very important.

55
00:02:44,130 --> 00:02:47,910
‫This is where we track the logs of the current application.

56
00:02:47,910 --> 00:02:51,180
‫We're going to use this a lot later on

57
00:02:51,180 --> 00:02:54,480
‫because we want to be able to track the logs

58
00:02:54,480 --> 00:02:58,110
‫so that we can know what's going on inside of our app.

59
00:02:58,110 --> 00:03:00,000
‫Like we can do debugging,

60
00:03:00,000 --> 00:03:03,480
‫we can see the outputs of our codes.

61
00:03:03,480 --> 00:03:05,910
‫This is not used for production obviously.

62
00:03:05,910 --> 00:03:09,840
‫This is just for developers so that they can get track

63
00:03:09,840 --> 00:03:12,060
‫of what's going on inside of their app

64
00:03:12,060 --> 00:03:15,690
‫so that they can intervene if something is wrong.

65
00:03:15,690 --> 00:03:19,590
‫But it's important because that's where we keep the track.

66
00:03:19,590 --> 00:03:22,830
‫This is logcat, okay.

67
00:03:22,830 --> 00:03:27,720
‫So this used to be named like under Android Monitor before.

68
00:03:27,720 --> 00:03:32,720
‫So if you see some kind of older tutorials online,

69
00:03:33,570 --> 00:03:37,590
‫I know that logcat is now the newer name

70
00:03:37,590 --> 00:03:39,063
‫of the Android Monitor.

71
00:03:40,320 --> 00:03:43,260
‫So now you know where to write code,

72
00:03:43,260 --> 00:03:45,267
‫you know where to design the app,

73
00:03:45,267 --> 00:03:47,430
‫but you don't know where to test it yet

74
00:03:47,430 --> 00:03:51,630
‫because we haven't created an under Android virtual device.

75
00:03:51,630 --> 00:03:55,710
‫So here you can find something called AVD Manager.

76
00:03:55,710 --> 00:03:58,890
‫If you hover on to this button, you will see the names.

77
00:03:58,890 --> 00:04:01,890
‫And this is the AVD Manager.

78
00:04:01,890 --> 00:04:05,280
‫So this is where you create a new emulator

79
00:04:05,280 --> 00:04:07,290
‫like I have told you before.

80
00:04:07,290 --> 00:04:10,500
‫So this is where we gonna create the emulator

81
00:04:10,500 --> 00:04:13,260
‫and then we are going to use that emulator

82
00:04:13,260 --> 00:04:16,410
‫to test our codes, test our apps

83
00:04:16,410 --> 00:04:19,380
‫so that we can actually see what's going on.

84
00:04:19,380 --> 00:04:23,190
‫You can reach the menu of the AVDs from here.

85
00:04:23,190 --> 00:04:25,950
‫Right now I believe you don't have any.

86
00:04:25,950 --> 00:04:30,780
‫And after you create one, you can delete or reset it

87
00:04:30,780 --> 00:04:32,910
‫by clicking on that menu.

88
00:04:32,910 --> 00:04:36,450
‫But right now if you see some blank screen

89
00:04:36,450 --> 00:04:40,499
‫without any devices over here it's perfectly fine.

90
00:04:40,499 --> 00:04:43,230
‫I'm going to show you how to create one.

91
00:04:43,230 --> 00:04:45,887
‫I just wanted to show you how to delete it like this.

92
00:04:45,887 --> 00:04:48,330
‫Okay, I'm gonna delete it

93
00:04:48,330 --> 00:04:52,230
‫and I'm going to create it from scratch with you.

94
00:04:52,230 --> 00:04:55,230
‫So when you create a new virtual device

95
00:04:55,230 --> 00:04:57,780
‫it will ask you what kind of device you want.

96
00:04:57,780 --> 00:04:59,730
‫Like do you want a Nexus?

97
00:04:59,730 --> 00:05:01,830
‫Do you want a Google Pixel?

98
00:05:01,830 --> 00:05:03,712
‫Like do you want a big screen

99
00:05:03,712 --> 00:05:06,990
‫or do you want a smaller screen?

100
00:05:06,990 --> 00:05:09,540
‫It really doesn't matter what you choose.

101
00:05:09,540 --> 00:05:12,990
‫You can go for what you are used to use.

102
00:05:12,990 --> 00:05:14,970
‫Like I'm gonna go for this Nexus.

103
00:05:14,970 --> 00:05:19,260
‫And after that it'll ask you the SDK

104
00:05:19,260 --> 00:05:21,510
‫that you want to run this on.

105
00:05:21,510 --> 00:05:23,520
‫This is kind of important.

106
00:05:23,520 --> 00:05:26,760
‫The device screen doesn't matter, but this is important

107
00:05:26,760 --> 00:05:29,370
‫because you want to be able to test this

108
00:05:29,370 --> 00:05:30,548
‫in a realistic situation.

109
00:05:30,548 --> 00:05:34,650
‫Like if you're looking for the latest version

110
00:05:34,650 --> 00:05:38,100
‫like Pie or Anrdoid 10, go for it.

111
00:05:38,100 --> 00:05:42,660
‫Just download it and try your apps on that device.

112
00:05:42,660 --> 00:05:45,930
‫Okay, and actually you can have

113
00:05:45,930 --> 00:05:49,710
‫more than one virtual devices at one time

114
00:05:49,710 --> 00:05:52,860
‫so that you can download the latest version.

115
00:05:52,860 --> 00:05:57,860
‫You can download the older versions like API 23, API 22.

116
00:05:58,320 --> 00:06:02,469
‫So you can test your applications with different SDKs

117
00:06:02,469 --> 00:06:04,110
‫in a virtual environment

118
00:06:04,110 --> 00:06:07,440
‫so that you don't have to buy 10 phones

119
00:06:07,440 --> 00:06:11,280
‫or you don't have to change the operating system

120
00:06:11,280 --> 00:06:13,590
‫the version of the Android every time

121
00:06:13,590 --> 00:06:16,530
‫that you want to test your application.

122
00:06:16,530 --> 00:06:19,380
‫So this is a great opportunity for you.

123
00:06:19,380 --> 00:06:23,850
‫Just download the SDKs that you want to run this on

124
00:06:23,850 --> 00:06:25,920
‫and then we will continue.

125
00:06:25,920 --> 00:06:29,670
‫And sometimes once you download it

126
00:06:29,670 --> 00:06:33,960
‫you may encounter some issues like I have told you before.

127
00:06:33,960 --> 00:06:37,080
‫In that case, you can try an older version

128
00:06:37,080 --> 00:06:39,390
‫can try to download an older version

129
00:06:39,390 --> 00:06:41,520
‫and try with that version.

130
00:06:41,520 --> 00:06:45,780
‫And I will show you some other alternative ways as well.

131
00:06:45,780 --> 00:06:49,410
‫But right now the Pie is downloaded for me.

132
00:06:49,410 --> 00:06:52,110
‫Now I'm going to see the other images

133
00:06:52,110 --> 00:06:54,240
‫because I want to show you something.

134
00:06:54,240 --> 00:06:57,030
‫Over here in the other images.

135
00:06:57,030 --> 00:06:58,380
‫So this is recommended,

136
00:06:58,380 --> 00:07:00,570
‫this is what generally works, right.

137
00:07:00,570 --> 00:07:04,050
‫This is what generally works most efficient way,

138
00:07:04,050 --> 00:07:07,290
‫but sometimes you need other images like this.

139
00:07:07,290 --> 00:07:12,290
‫So if you have an AMD processor rather than an Intel,

140
00:07:12,450 --> 00:07:17,340
‫maybe you want to try with this armeabi, okay.

141
00:07:17,340 --> 00:07:20,460
‫So armeabi is more efficient

142
00:07:20,460 --> 00:07:23,610
‫when it comes to AMD processors

143
00:07:23,610 --> 00:07:25,614
‫rather than Intel processors.

144
00:07:25,614 --> 00:07:29,970
‫But anyhow, if you either have AMD or Intel

145
00:07:29,970 --> 00:07:32,563
‫I suggest you try with the recommended first

146
00:07:32,563 --> 00:07:37,050
‫and if it fails then you can try with the other images.

147
00:07:37,050 --> 00:07:38,520
‫So when you click next

148
00:07:38,520 --> 00:07:41,370
‫you will see some other options as well like this.

149
00:07:41,370 --> 00:07:45,780
‫So the orientation, like the internal storage,

150
00:07:45,780 --> 00:07:47,370
‫so the RAM.

151
00:07:47,370 --> 00:07:50,940
‫So these are important, but they can be changed

152
00:07:50,940 --> 00:07:54,150
‫after you create this as well.

153
00:07:54,150 --> 00:07:54,983
‫Okay.

154
00:07:54,983 --> 00:07:57,660
‫For example, we have two boot options over here.

155
00:07:57,660 --> 00:08:00,990
‫One is cold boot, what is one is quick boot.

156
00:08:00,990 --> 00:08:05,460
‫So this is just for starting method of the emulator.

157
00:08:05,460 --> 00:08:08,580
‫And it's generally come default in quick boot

158
00:08:08,580 --> 00:08:10,860
‫because it's actually quicker,

159
00:08:10,860 --> 00:08:13,560
‫but sometimes it causes some problems.

160
00:08:13,560 --> 00:08:16,410
‫So maybe you can switch it back to cold boot

161
00:08:16,410 --> 00:08:20,490
‫after you get some kind of an error or something.

162
00:08:20,490 --> 00:08:22,440
‫So this is where you get an error

163
00:08:22,440 --> 00:08:24,660
‫if there's something wrong with your emulator.

164
00:08:24,660 --> 00:08:27,360
‫You click on this play button

165
00:08:27,360 --> 00:08:29,730
‫and it'll play your emulator, okay?

166
00:08:29,730 --> 00:08:31,830
‫It will start up your emulator,

167
00:08:31,830 --> 00:08:36,390
‫you will see this Google sign if everything goes well.

168
00:08:36,390 --> 00:08:38,910
‫And you will see the rest of the phone.

169
00:08:38,910 --> 00:08:42,600
‫But in case you get some kind of error over here,

170
00:08:42,600 --> 00:08:46,680
‫you can try wiping the data, which means resetting the phone

171
00:08:46,680 --> 00:08:49,170
‫and deleting area thing, okay.

172
00:08:49,170 --> 00:08:52,290
‫And then coming back and trying again.

173
00:08:52,290 --> 00:08:56,190
‫And if it fails as well, again, delete this

174
00:08:56,190 --> 00:08:58,470
‫or edit this first.

175
00:08:58,470 --> 00:09:02,340
‫Just come over here, not the orientation,

176
00:09:02,340 --> 00:09:05,820
‫but as I said before under the advanced settings

177
00:09:05,820 --> 00:09:08,370
‫try cold boot rather than quick boot.

178
00:09:08,370 --> 00:09:11,400
‫Try increasing the RAM or decreasing the RAM

179
00:09:11,400 --> 00:09:14,730
‫and if everything else fails,

180
00:09:14,730 --> 00:09:18,543
‫you can just delete it and try with other images as well.

181
00:09:19,590 --> 00:09:24,030
‫So as you can see, my phone is actually working right now,

182
00:09:24,030 --> 00:09:25,950
‫but I'm not running this app.

183
00:09:25,950 --> 00:09:30,000
‫I just have to click on this run app button

184
00:09:30,000 --> 00:09:30,833
‫in order to do that.

185
00:09:30,833 --> 00:09:35,833
‫And it will ask me which emulator do I want to use over here

186
00:09:36,060 --> 00:09:40,770
‫and I only have one right now and I'm gonna just open it.

187
00:09:40,770 --> 00:09:42,120
‫Okay.

188
00:09:42,120 --> 00:09:46,800
‫And I will be seeing something exactly like this,

189
00:09:46,800 --> 00:09:51,150
‫exactly this phone again, but this time with my app on it.

190
00:09:51,150 --> 00:09:54,721
‫So my app is currently installing on that emulator

191
00:09:54,721 --> 00:09:56,910
‫and it will run my app.

192
00:09:56,910 --> 00:09:57,743
‫Here you go.

193
00:09:57,743 --> 00:09:59,340
‫You see my app.

194
00:09:59,340 --> 00:10:02,619
‫So you see this button is over here for some reason.

195
00:10:02,619 --> 00:10:06,600
‫I'm going to explain why is that the case later on.

196
00:10:06,600 --> 00:10:08,850
‫And we are gonna fix it, don't worry.

197
00:10:08,850 --> 00:10:12,510
‫But actually you see this is our first app

198
00:10:12,510 --> 00:10:14,010
‫and we are going to improve it.

199
00:10:14,010 --> 00:10:15,630
‫Don't worry again.

200
00:10:15,630 --> 00:10:18,646
‫And now we have an app running on our emulator,

201
00:10:18,646 --> 00:10:21,030
‫which is fantastic.

202
00:10:21,030 --> 00:10:24,840
‫So this is all we needed to do in this lecture.

203
00:10:24,840 --> 00:10:26,910
‫But again, if you got some error

204
00:10:26,910 --> 00:10:30,300
‫if you tried editing it, if you tried deleting it,

205
00:10:30,300 --> 00:10:34,740
‫if you tried wiping the data, and if nothing works

206
00:10:34,740 --> 00:10:38,700
‫you can try and a emulator which is not coming

207
00:10:38,700 --> 00:10:40,590
‫with inside of Android Studio.

208
00:10:40,590 --> 00:10:44,520
‫There are a lot of external emulators as well.

209
00:10:44,520 --> 00:10:48,810
‫And you can even use your own Android device as an emulator.

210
00:10:48,810 --> 00:10:50,340
‫If you have a USB cable,

211
00:10:50,340 --> 00:10:54,600
‫you can just plug it in and it will show up

212
00:10:54,600 --> 00:10:59,130
‫on your screen when you try to hit the play button.

213
00:10:59,130 --> 00:11:01,830
‫And if it doesn't just come to Q and A

214
00:11:01,830 --> 00:11:04,200
‫and I will tell you how to do it.

215
00:11:04,200 --> 00:11:06,600
‫And for the external emulators

216
00:11:06,600 --> 00:11:11,250
‫there are a lot of possibilities, a lot of options as well.

217
00:11:11,250 --> 00:11:14,730
‫There is Genymotion, there is Nox, there is Bluestacks.

218
00:11:14,730 --> 00:11:18,270
‫I'm gonna show you how to look for it.

219
00:11:18,270 --> 00:11:22,680
‫So for example, if you go to Genymotion.comfun-zone

220
00:11:22,680 --> 00:11:26,368
‫which means this is the free version of the Genymotion,

221
00:11:26,368 --> 00:11:31,110
‫you can just download it and when you install it

222
00:11:31,110 --> 00:11:35,220
‫it will pop up on your screen when you hit run over here.

223
00:11:35,220 --> 00:11:37,890
‫You will see it on the list.

224
00:11:37,890 --> 00:11:41,940
‫All right, so there are a lot of options to use

225
00:11:41,940 --> 00:11:45,540
‫as an emulator, and I believe one of them

226
00:11:45,540 --> 00:11:46,950
‫is going to work for you.

227
00:11:46,950 --> 00:11:50,040
‫And most of the time this will work as well.

228
00:11:50,040 --> 00:11:52,984
‫The built in emulator of the Android Studio

229
00:11:52,984 --> 00:11:55,950
‫will work as well.

230
00:11:55,950 --> 00:11:58,650
‫So if you come across any problems,

231
00:11:58,650 --> 00:12:01,080
‫and if you cannot solve it by yourself,

232
00:12:01,080 --> 00:12:03,240
‫just come into the Q and A

233
00:12:03,240 --> 00:12:06,690
‫and see the other options and write to me

234
00:12:06,690 --> 00:12:10,920
‫and I will just provide the answer within 24 hours.

235
00:12:10,920 --> 00:12:12,780
‫So that's it for right now.

236
00:12:12,780 --> 00:12:15,330
‫Let's just stop here and within the next lecture,

237
00:12:15,330 --> 00:12:18,303
‫we are actually going to write our first app.

