Hello this is mortiser court date.
And in this video we are going to just create the calculator project.
But before that I want to show you I want to actually show you these texts here inside this and ridable
of her Web site that says.
And it provides support for multiple screen sizes and densities reflecting the many different screen
configurations that a device may have.
You can use features of the and root system to optimize your applications user interface for each screen
configuration and ensure that your application not only that renders perfectly properly but provides
the best user experience possible.
But each screen to simplify the debate that you design your use of interfaces for multiple screens.
Android bytes the Rangers are the range of actual screen sizes and densities into our set up for generalized
sizes small Northwold large and x large note beginning with Android 3.2 API level 15 these size groups
are deprecated in favor of a new technique for managing screen size is based on the available screen
which if you are developing for and with free point 3.2 and greater I see declaring tablet layouts for
Android freephone to for more information.
So here it says a set of six generalized densities.
We have this ATP low.
One hundred and twenty DPMI.
So it is DPR it stands for dots here in inch.
So we have 120 dots per inch for low low quality low cost low dots per inch.
And we have this one in DPMI medium dots per inch 160 DPMI and we have this one HTP high.
Two hundred and forty dots per inch.
So I know that the Android devices that may actually have these vans LDP or GPI screens those Android
devices are now actually deprecated or they don't actually exist anymore.
Now we have HTP we have X HTP y we have x x STPI And we also have x x x STPI for tablets.
But you're going to target Android more wise.
So if we agree to say that we have HTP 240 dots per inch we have X HTP X through a high 310 to any dots
per inch.
And we have x x STPI X extra a high.
And here we have four four hundred and eighty that's pretty much.
So that's why we created free or separated folders in order to store our images inside those folders
for different screen densities for different actually qualities.
So hopefully you have actually read this article.
Now we are ready to create our calculator app.
So let me open the anthrax to the let me close this.
Page.
Now let's open the answer is you.
And here are let me point out that you should always update your STK packages up to date.
So if you don't know how to do that you just need to open the entry to suit your click and configure
and then click on STK manager.
Here you can see that we have STK platforms SDK tools and the update sites.
So we are going to work with these two apps as platforms and STK tools.
So here it is not nothing to show but if here at the bottom it says looking for updates.
So we need to wait a little bit here.
And now we can see how these packages these API is we are going to actually target the Android 8 point
zero audio API 26.
So if they click on this one is a checkbox that says show package details.
You can see the package details here.
So you can see that I actually downloaded the Android as a platform to access sources for Android 26.
And we don't need the TV.
And here we have the android with Intel.
So if you want to test your app on the Android devices you can actually be done with this package but
you don't have to do that and here we have the Google API is Intel 86 atom system image.
So here if you want to if you have an internship you and you want to run your app on the Android emulator
you need to download these packages he had these two packages here that is API is Intel.
And here we have Google Play Intel 86.
Adams is the image so we don't have to actually download this one but make sure to download it so that
later you're not going to actually encounter any more problems.
So just download these packages here so that later when you want to actually do more complicated things
with the android emulator you're not going to actually encounter any problems.
And that's it.
So if you want to actually just switch to the SDK tools just click on it here.
And you can see that we have these packages Android SDK tools.
Make sure to download and realistically build tools and if you want it you can click on Show package
details and here you can see the Android package details and with the staple tools details.
And here we have this one and there is great tools and great support library.
Make sure to download these packages here.
The public debugging tools and all of these packages that they actually checked are checkboxes here.
Make sure to also download or update the support repository.
This is very important here.
That's it.
And after that you have actually decided which packages you want to download or update.
You just need to click on apply.
Ok so I'm going to click on the canso And here let's start in your Android studio project.
So the application name is going to be my calculator my child.
Q Later on you can specify the company domain project location and the package name.
Make sure that you don't check these checkboxes here for the C++ or coastline.
Just click on next and here for the.
Are going to specify the minimum SDK for our application.
So I use the API to any free Android 6 are my marshmallow.
But let's change it to Android.
Five point one.
Lollipop.
And then you can see that it is actually the target.
If I say that the minimum is the key of my app is Android lollipop it is by targeting API to and leader
your app will run on approximately 62 percent of the devices so it's good.
Let's click on next let's choose empty activity next.
And yet the activity name is main activity and the last name is activity on the line main.
So you don't have to change these values here.
But if you want to you can do that you can see that the activity name is going to be calculator can
queue later.
I can't see why I should change the activity name here.
The layout name is also changed to activity on the line calculator because the layout name should be
lowercase.
All of these letters should be largest and it has activity on the line calculator.
So now I can click on finish.
So as you can see here the project is created and I think that's enough for the situation in the next
tutorial.
If you're going to design the layout of the application.
So thank you very much for watching and I will look forward to seeing you in the next story.