1
00:00:00,930 --> 00:00:02,870
Hello this is mortiser court date.

2
00:00:02,970 --> 00:00:08,070
And in this video we are going to just create the calculator project.

3
00:00:08,370 --> 00:00:16,410
But before that I want to show you I want to actually show you these texts here inside this and ridable

4
00:00:16,410 --> 00:00:18,080
of her Web site that says.

5
00:00:18,240 --> 00:00:24,600
And it provides support for multiple screen sizes and densities reflecting the many different screen

6
00:00:24,600 --> 00:00:27,250
configurations that a device may have.

7
00:00:27,420 --> 00:00:33,780
You can use features of the and root system to optimize your applications user interface for each screen

8
00:00:33,780 --> 00:00:40,590
configuration and ensure that your application not only that renders perfectly properly but provides

9
00:00:40,650 --> 00:00:43,250
the best user experience possible.

10
00:00:43,300 --> 00:00:49,520
But each screen to simplify the debate that you design your use of interfaces for multiple screens.

11
00:00:49,640 --> 00:00:58,020
Android bytes the Rangers are the range of actual screen sizes and densities into our set up for generalized

12
00:00:58,020 --> 00:01:08,670
sizes small Northwold large and x large note beginning with Android 3.2 API level 15 these size groups

13
00:01:08,760 --> 00:01:15,660
are deprecated in favor of a new technique for managing screen size is based on the available screen

14
00:01:15,680 --> 00:01:24,210
which if you are developing for and with free point 3.2 and greater I see declaring tablet layouts for

15
00:01:24,210 --> 00:01:26,720
Android freephone to for more information.

16
00:01:26,880 --> 00:01:30,720
So here it says a set of six generalized densities.

17
00:01:30,810 --> 00:01:33,770
We have this ATP low.

18
00:01:34,080 --> 00:01:37,240
One hundred and twenty DPMI.

19
00:01:37,530 --> 00:01:42,330
So it is DPR it stands for dots here in inch.

20
00:01:42,390 --> 00:01:51,720
So we have 120 dots per inch for low low quality low cost low dots per inch.

21
00:01:51,840 --> 00:02:03,140
And we have this one in DPMI medium dots per inch 160 DPMI and we have this one HTP high.

22
00:02:03,510 --> 00:02:06,790
Two hundred and forty dots per inch.

23
00:02:07,230 --> 00:02:18,230
So I know that the Android devices that may actually have these vans LDP or GPI screens those Android

24
00:02:18,230 --> 00:02:24,490
devices are now actually deprecated or they don't actually exist anymore.

25
00:02:24,830 --> 00:02:35,830
Now we have HTP we have X HTP y we have x x STPI And we also have x x x STPI for tablets.

26
00:02:36,470 --> 00:02:40,230
But you're going to target Android more wise.

27
00:02:40,250 --> 00:02:49,340
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

28
00:02:49,340 --> 00:02:50,040
per inch.

29
00:02:50,330 --> 00:02:56,210
And we have x x STPI X extra a high.

30
00:02:56,640 --> 00:03:01,540
And here we have four four hundred and eighty that's pretty much.

31
00:03:01,630 --> 00:03:09,640
So that's why we created free or separated folders in order to store our images inside those folders

32
00:03:09,940 --> 00:03:15,330
for different screen densities for different actually qualities.

33
00:03:16,290 --> 00:03:18,650
So hopefully you have actually read this article.

34
00:03:18,690 --> 00:03:22,600
Now we are ready to create our calculator app.

35
00:03:22,680 --> 00:03:25,550
So let me open the anthrax to the let me close this.

36
00:03:27,020 --> 00:03:27,420
Page.

37
00:03:27,410 --> 00:03:30,220
Now let's open the answer is you.

38
00:03:30,470 --> 00:03:38,930
And here are let me point out that you should always update your STK packages up to date.

39
00:03:38,960 --> 00:03:43,520
So if you don't know how to do that you just need to open the entry to suit your click and configure

40
00:03:43,940 --> 00:03:45,920
and then click on STK manager.

41
00:03:46,100 --> 00:03:52,940
Here you can see that we have STK platforms SDK tools and the update sites.

42
00:03:52,940 --> 00:03:58,600
So we are going to work with these two apps as platforms and STK tools.

43
00:03:58,820 --> 00:04:04,190
So here it is not nothing to show but if here at the bottom it says looking for updates.

44
00:04:04,220 --> 00:04:06,400
So we need to wait a little bit here.

45
00:04:07,950 --> 00:04:14,700
And now we can see how these packages these API is we are going to actually target the Android 8 point

46
00:04:14,700 --> 00:04:18,480
zero audio API 26.

47
00:04:18,480 --> 00:04:23,330
So if they click on this one is a checkbox that says show package details.

48
00:04:23,460 --> 00:04:25,490
You can see the package details here.

49
00:04:25,740 --> 00:04:33,080
So you can see that I actually downloaded the Android as a platform to access sources for Android 26.

50
00:04:33,480 --> 00:04:35,550
And we don't need the TV.

51
00:04:35,790 --> 00:04:39,090
And here we have the android with Intel.

52
00:04:39,090 --> 00:04:43,710
So if you want to test your app on the Android devices you can actually be done with this package but

53
00:04:43,710 --> 00:04:51,300
you don't have to do that and here we have the Google API is Intel 86 atom system image.

54
00:04:51,310 --> 00:04:59,830
So here if you want to if you have an internship you and you want to run your app on the Android emulator

55
00:05:00,040 --> 00:05:06,030
you need to download these packages he had these two packages here that is API is Intel.

56
00:05:06,400 --> 00:05:09,450
And here we have Google Play Intel 86.

57
00:05:09,540 --> 00:05:16,300
Adams is the image so we don't have to actually download this one but make sure to download it so that

58
00:05:16,300 --> 00:05:20,420
later you're not going to actually encounter any more problems.

59
00:05:20,770 --> 00:05:27,700
So just download these packages here so that later when you want to actually do more complicated things

60
00:05:27,700 --> 00:05:31,720
with the android emulator you're not going to actually encounter any problems.

61
00:05:32,020 --> 00:05:32,840
And that's it.

62
00:05:32,980 --> 00:05:39,500
So if you want to actually just switch to the SDK tools just click on it here.

63
00:05:40,900 --> 00:05:46,930
And you can see that we have these packages Android SDK tools.

64
00:05:47,020 --> 00:05:51,670
Make sure to download and realistically build tools and if you want it you can click on Show package

65
00:05:51,670 --> 00:05:58,820
details and here you can see the Android package details and with the staple tools details.

66
00:05:59,340 --> 00:06:04,990
And here we have this one and there is great tools and great support library.

67
00:06:04,990 --> 00:06:07,250
Make sure to download these packages here.

68
00:06:07,750 --> 00:06:14,540
The public debugging tools and all of these packages that they actually checked are checkboxes here.

69
00:06:14,740 --> 00:06:18,400
Make sure to also download or update the support repository.

70
00:06:18,400 --> 00:06:21,030
This is very important here.

71
00:06:21,070 --> 00:06:21,660
That's it.

72
00:06:21,850 --> 00:06:26,320
And after that you have actually decided which packages you want to download or update.

73
00:06:26,350 --> 00:06:27,930
You just need to click on apply.

74
00:06:28,120 --> 00:06:35,750
Ok so I'm going to click on the canso And here let's start in your Android studio project.

75
00:06:35,790 --> 00:06:41,790
So the application name is going to be my calculator my child.

76
00:06:41,800 --> 00:06:47,550
Q Later on you can specify the company domain project location and the package name.

77
00:06:47,550 --> 00:06:52,250
Make sure that you don't check these checkboxes here for the C++ or coastline.

78
00:06:52,270 --> 00:06:57,210
Just click on next and here for the.

79
00:06:57,260 --> 00:07:01,020
Are going to specify the minimum SDK for our application.

80
00:07:01,020 --> 00:07:04,380
So I use the API to any free Android 6 are my marshmallow.

81
00:07:04,530 --> 00:07:07,410
But let's change it to Android.

82
00:07:07,410 --> 00:07:09,620
Five point one.

83
00:07:09,620 --> 00:07:10,540
Lollipop.

84
00:07:11,700 --> 00:07:15,670
And then you can see that it is actually the target.

85
00:07:15,720 --> 00:07:22,260
If I say that the minimum is the key of my app is Android lollipop it is by targeting API to and leader

86
00:07:22,530 --> 00:07:28,050
your app will run on approximately 62 percent of the devices so it's good.

87
00:07:28,350 --> 00:07:33,990
Let's click on next let's choose empty activity next.

88
00:07:34,470 --> 00:07:40,280
And yet the activity name is main activity and the last name is activity on the line main.

89
00:07:40,530 --> 00:07:43,130
So you don't have to change these values here.

90
00:07:43,380 --> 00:07:49,540
But if you want to you can do that you can see that the activity name is going to be calculator can

91
00:07:50,200 --> 00:07:51,700
queue later.

92
00:07:51,720 --> 00:07:56,030
I can't see why I should change the activity name here.

93
00:07:56,100 --> 00:08:02,760
The layout name is also changed to activity on the line calculator because the layout name should be

94
00:08:02,910 --> 00:08:04,130
lowercase.

95
00:08:04,170 --> 00:08:08,470
All of these letters should be largest and it has activity on the line calculator.

96
00:08:08,700 --> 00:08:11,430
So now I can click on finish.

97
00:08:11,670 --> 00:08:16,620
So as you can see here the project is created and I think that's enough for the situation in the next

98
00:08:16,620 --> 00:08:17,600
tutorial.

99
00:08:17,920 --> 00:08:21,990
If you're going to design the layout of the application.

100
00:08:21,990 --> 00:08:27,800
So thank you very much for watching and I will look forward to seeing you in the next story.

