‫Instructor: Hi.
‫Within this lecture we are going to see the overview
‫of Android Studio.
‫Now we have installed Android Studio
‫and we have our first project.
‫We have already seen this screen, right.
‫On the right hand side, we see the codes, we see the design.
‫On the bottom side, we see the logs
‫and on the left side we see the files and folders.
‫But now let's deep dive into this
‫because we're going to use those a lot.
‫So over here we see an Android think
‫and we can make it into a project view.
‫And within the project we you see all the files and folders
‫created for your project,
‫but that's not what we need generally.
‫We need this Android view.
‫Okay.
‫So within this Android view
‫we see the most common used files and folders
‫so that we can browse more efficiently over here.
‫So inside of our Java folder we have MainActivity.java
‫and this is the codes for our activity.
‫Remember what an activity is.
‫It's a screen that users interact.
‫So we have this resources file folder over here.
‫Under layout folder you see ActivityMain.xml.
‫So this is the file that we edit
‫that we do the design for main activity.
‫And this is what users will see that they-
‫This is what they will be interacting with.
‫When we talk about activity, you can visualize it
‫by designing this activity main.
‫And you have two tabs over here.
‫One is text and one is design.
‫So if you go to text, you can see the code.
‫And if you go to design, you can actually see the design.
‫For example, you have some kind of components over here,
‫like a button.
‫You can just drag and drop button to your layout like this
‫and you can design your app.
‫So this is very simple.
‫We're gonna go into that later on.
‫And remember, you can reach the settings from here
‫and you can change whatever you want
‫like fonts and colors and everything.
‫If you are not satisfied with your current look,
‫you can change everything from the settings
‫or preferences of the Android Studio.
‫So that's the general overview.
‫You can open and close the tabs
‫by clicking on here or there like this, okay.
‫And on the bottom side we have this built showing on.
‫So we have this logcat, and this is very important.
‫This is where we track the logs of the current application.
‫We're going to use this a lot later on
‫because we want to be able to track the logs
‫so that we can know what's going on inside of our app.
‫Like we can do debugging,
‫we can see the outputs of our codes.
‫This is not used for production obviously.
‫This is just for developers so that they can get track
‫of what's going on inside of their app
‫so that they can intervene if something is wrong.
‫But it's important because that's where we keep the track.
‫This is logcat, okay.
‫So this used to be named like under Android Monitor before.
‫So if you see some kind of older tutorials online,
‫I know that logcat is now the newer name
‫of the Android Monitor.
‫So now you know where to write code,
‫you know where to design the app,
‫but you don't know where to test it yet
‫because we haven't created an under Android virtual device.
‫So here you can find something called AVD Manager.
‫If you hover on to this button, you will see the names.
‫And this is the AVD Manager.
‫So this is where you create a new emulator
‫like I have told you before.
‫So this is where we gonna create the emulator
‫and then we are going to use that emulator
‫to test our codes, test our apps
‫so that we can actually see what's going on.
‫You can reach the menu of the AVDs from here.
‫Right now I believe you don't have any.
‫And after you create one, you can delete or reset it
‫by clicking on that menu.
‫But right now if you see some blank screen
‫without any devices over here it's perfectly fine.
‫I'm going to show you how to create one.
‫I just wanted to show you how to delete it like this.
‫Okay, I'm gonna delete it
‫and I'm going to create it from scratch with you.
‫So when you create a new virtual device
‫it will ask you what kind of device you want.
‫Like do you want a Nexus?
‫Do you want a Google Pixel?
‫Like do you want a big screen
‫or do you want a smaller screen?
‫It really doesn't matter what you choose.
‫You can go for what you are used to use.
‫Like I'm gonna go for this Nexus.
‫And after that it'll ask you the SDK
‫that you want to run this on.
‫This is kind of important.
‫The device screen doesn't matter, but this is important
‫because you want to be able to test this
‫in a realistic situation.
‫Like if you're looking for the latest version
‫like Pie or Anrdoid 10, go for it.
‫Just download it and try your apps on that device.
‫Okay, and actually you can have
‫more than one virtual devices at one time
‫so that you can download the latest version.
‫You can download the older versions like API 23, API 22.
‫So you can test your applications with different SDKs
‫in a virtual environment
‫so that you don't have to buy 10 phones
‫or you don't have to change the operating system
‫the version of the Android every time
‫that you want to test your application.
‫So this is a great opportunity for you.
‫Just download the SDKs that you want to run this on
‫and then we will continue.
‫And sometimes once you download it
‫you may encounter some issues like I have told you before.
‫In that case, you can try an older version
‫can try to download an older version
‫and try with that version.
‫And I will show you some other alternative ways as well.
‫But right now the Pie is downloaded for me.
‫Now I'm going to see the other images
‫because I want to show you something.
‫Over here in the other images.
‫So this is recommended,
‫this is what generally works, right.
‫This is what generally works most efficient way,
‫but sometimes you need other images like this.
‫So if you have an AMD processor rather than an Intel,
‫maybe you want to try with this armeabi, okay.
‫So armeabi is more efficient
‫when it comes to AMD processors
‫rather than Intel processors.
‫But anyhow, if you either have AMD or Intel
‫I suggest you try with the recommended first
‫and if it fails then you can try with the other images.
‫So when you click next
‫you will see some other options as well like this.
‫So the orientation, like the internal storage,
‫so the RAM.
‫So these are important, but they can be changed
‫after you create this as well.
‫Okay.
‫For example, we have two boot options over here.
‫One is cold boot, what is one is quick boot.
‫So this is just for starting method of the emulator.
‫And it's generally come default in quick boot
‫because it's actually quicker,
‫but sometimes it causes some problems.
‫So maybe you can switch it back to cold boot
‫after you get some kind of an error or something.
‫So this is where you get an error
‫if there's something wrong with your emulator.
‫You click on this play button
‫and it'll play your emulator, okay?
‫It will start up your emulator,
‫you will see this Google sign if everything goes well.
‫And you will see the rest of the phone.
‫But in case you get some kind of error over here,
‫you can try wiping the data, which means resetting the phone
‫and deleting area thing, okay.
‫And then coming back and trying again.
‫And if it fails as well, again, delete this
‫or edit this first.
‫Just come over here, not the orientation,
‫but as I said before under the advanced settings
‫try cold boot rather than quick boot.
‫Try increasing the RAM or decreasing the RAM
‫and if everything else fails,
‫you can just delete it and try with other images as well.
‫So as you can see, my phone is actually working right now,
‫but I'm not running this app.
‫I just have to click on this run app button
‫in order to do that.
‫And it will ask me which emulator do I want to use over here
‫and I only have one right now and I'm gonna just open it.
‫Okay.
‫And I will be seeing something exactly like this,
‫exactly this phone again, but this time with my app on it.
‫So my app is currently installing on that emulator
‫and it will run my app.
‫Here you go.
‫You see my app.
‫So you see this button is over here for some reason.
‫I'm going to explain why is that the case later on.
‫And we are gonna fix it, don't worry.
‫But actually you see this is our first app
‫and we are going to improve it.
‫Don't worry again.
‫And now we have an app running on our emulator,
‫which is fantastic.
‫So this is all we needed to do in this lecture.
‫But again, if you got some error
‫if you tried editing it, if you tried deleting it,
‫if you tried wiping the data, and if nothing works
‫you can try and a emulator which is not coming
‫with inside of Android Studio.
‫There are a lot of external emulators as well.
‫And you can even use your own Android device as an emulator.
‫If you have a USB cable,
‫you can just plug it in and it will show up
‫on your screen when you try to hit the play button.
‫And if it doesn't just come to Q and A
‫and I will tell you how to do it.
‫And for the external emulators
‫there are a lot of possibilities, a lot of options as well.
‫There is Genymotion, there is Nox, there is Bluestacks.
‫I'm gonna show you how to look for it.
‫So for example, if you go to Genymotion.comfun-zone
‫which means this is the free version of the Genymotion,
‫you can just download it and when you install it
‫it will pop up on your screen when you hit run over here.
‫You will see it on the list.
‫All right, so there are a lot of options to use
‫as an emulator, and I believe one of them
‫is going to work for you.
‫And most of the time this will work as well.
‫The built in emulator of the Android Studio
‫will work as well.
‫So if you come across any problems,
‫and if you cannot solve it by yourself,
‫just come into the Q and A
‫and see the other options and write to me
‫and I will just provide the answer within 24 hours.
‫So that's it for right now.
‫Let's just stop here and within the next lecture,
‫we are actually going to write our first app.