1
00:00:00,330 --> 00:00:02,250
Hello this is Martez or Corti.

2
00:00:02,460 --> 00:00:08,400
And in this story I'm going to show you how we can create your own Android emulator and run your app

3
00:00:08,400 --> 00:00:09,720
on the Android emulator.

4
00:00:09,930 --> 00:00:14,840
So in order to actually run your app on the treadmill later at the top you just need to click on the

5
00:00:14,950 --> 00:00:16,880
play button here.

6
00:00:17,310 --> 00:00:24,090
And so it can actually show you what this window and then you just click on Create new virtual device

7
00:00:24,200 --> 00:00:24,760
or key.

8
00:00:24,810 --> 00:00:27,090
There is another way to create a new virtual.

9
00:00:27,120 --> 00:00:30,150
So if I click on the spot and here it's going to open this window for you.

10
00:00:30,180 --> 00:00:32,370
So let's close this window here.

11
00:00:32,850 --> 00:00:39,850
You can actually at the top you can click on Tools and then here we have this for Android.

12
00:00:39,960 --> 00:00:41,570
And we have Android.

13
00:00:41,790 --> 00:00:46,650
We have DVD manager DVDs stands for Android's virtual device manager.

14
00:00:46,740 --> 00:00:48,460
So just click on this.

15
00:00:48,540 --> 00:00:54,450
So now it is your virtual devices at the bottom it is create a virtual device Driskel you can create

16
00:00:54,450 --> 00:00:55,770
virtual device.

17
00:00:55,770 --> 00:00:57,670
So here you want to create a phone.

18
00:00:57,740 --> 00:00:58,090
OK.

19
00:00:58,090 --> 00:00:59,400
So just click on a phone.

20
00:00:59,670 --> 00:01:04,530
And here we can actually specify the type of the phone that we want to create.

21
00:01:04,530 --> 00:01:09,570
So I'm going to create a nexus 6 p ok or Nexus One.

22
00:01:09,570 --> 00:01:19,290
Whatever device that you want to create I'm going to create a nexus six p and here we can see the size

23
00:01:19,290 --> 00:01:22,970
the ratio the density just character next.

24
00:01:23,270 --> 00:01:25,000
And this is really important.

25
00:01:25,020 --> 00:01:32,640
Now we want to target the Android or you or eight if you want to run our app on the Android or you so

26
00:01:32,640 --> 00:01:38,890
here choose or you if you want to target not get you need to actually download the system image for

27
00:01:38,890 --> 00:01:43,160
it and not get to download it but just clicking on this link all you can.

28
00:01:43,180 --> 00:01:45,290
We have also the API 27.

29
00:01:45,360 --> 00:01:51,720
So we just want to use API 26 or you select this one or Hopefully you have actually already downloaded

30
00:01:51,730 --> 00:02:00,470
the audio system image in the Android as the case manager that I showed you in the previous tutorials.

31
00:02:01,050 --> 00:02:02,070
So choose or you.

32
00:02:02,220 --> 00:02:03,980
And then click on next.

33
00:02:03,990 --> 00:02:06,690
So here we have some configuration.

34
00:02:06,690 --> 00:02:17,100
So first we can actually here we can change the emulator name we can say Odeo emulator or you emulator.

35
00:02:17,100 --> 00:02:19,000
We have the nexus s.p.

36
00:02:19,320 --> 00:02:23,630
So here here is going to actually show you that it is actually x x.

37
00:02:23,970 --> 00:02:26,090
It is a very high quality screen.

38
00:02:26,280 --> 00:02:28,640
You can't change it if you want by just clicking on change.

39
00:02:28,770 --> 00:02:36,410
But we already clicked on a nexus is set in Texas a sex P Actually the operating system is Android 8.

40
00:02:36,570 --> 00:02:42,870
The startup orientation portrayed we can't change we can change the landscape leader by just actually

41
00:02:43,260 --> 00:02:49,750
clicking on some options that are provided with a pro emulator.

42
00:02:50,010 --> 00:02:55,750
I wanted to show you that later but for now just use portrait and we have to emulated performance choose

43
00:02:55,760 --> 00:03:02,470
a graphic automatic device frame enable device frame to Tools district post records show at fan settings.

44
00:03:02,550 --> 00:03:07,840
So all of these attributes all of these cities are already done for you you don't have to change any

45
00:03:07,850 --> 00:03:08,380
field.

46
00:03:08,460 --> 00:03:10,020
You can see that the camera or front back.

47
00:03:10,020 --> 00:03:13,310
Emulate your speed fool latency none.

48
00:03:13,470 --> 00:03:20,700
And here you can see that for example the RAM is disvalue we heap two hundred and fifty six internal

49
00:03:20,700 --> 00:03:21,410
storage.

50
00:03:21,440 --> 00:03:22,910
Eight hundred.

51
00:03:22,920 --> 00:03:27,260
So these bodies are already created for me I don't have to change anything.

52
00:03:27,510 --> 00:03:30,220
And here I just have to click click and finish.

53
00:03:30,450 --> 00:03:34,350
So now the emulator is actually created for me.

54
00:03:34,350 --> 00:03:34,890
Right.

55
00:03:34,920 --> 00:03:37,460
And here it is the emulator or your emulator.

56
00:03:37,620 --> 00:03:43,320
And I just need to run this emulator by just clicking on this play button.

57
00:03:43,380 --> 00:03:51,120
So now I just need to you can see now I can read so that the simulator runs in order to make this bigger

58
00:03:51,200 --> 00:03:55,250
I can just click on this handler and just make it bigger.

59
00:03:55,290 --> 00:03:57,170
So let me close this window.

60
00:03:58,010 --> 00:03:59,570
Let me show you the emulator.

61
00:03:59,570 --> 00:04:02,300
So whenever that you want to create an applications.

62
00:04:02,420 --> 00:04:08,720
Make sure to run your emulator first because it's going to take some time to run.

63
00:04:09,110 --> 00:04:11,550
So now I can see my emulator is now ready.

64
00:04:11,660 --> 00:04:12,730
This is my emulator.

65
00:04:12,830 --> 00:04:18,050
So let's go back to our studio and here I just need to click on Play button at the top.

66
00:04:18,050 --> 00:04:23,500
And here I can choose audio you emulator emulator it has connected devices we have this audio emulator.

67
00:04:23,500 --> 00:04:24,880
Just click on OK.

68
00:04:25,160 --> 00:04:28,830
Now it's going to run the app on this or you emulator.

69
00:04:28,940 --> 00:04:32,110
So now we can see that our application is running on the simulator.

70
00:04:32,210 --> 00:04:32,940
We have the spot.

71
00:04:32,960 --> 00:04:34,670
I can interact with this button we have.

72
00:04:34,670 --> 00:04:36,580
Hello world Hi world takes you.

73
00:04:36,670 --> 00:04:39,410
You have enter a name this eddy takes.

74
00:04:39,440 --> 00:04:40,910
We have these buttons.

75
00:04:40,910 --> 00:04:45,550
We have this floating action button here we have this menu.

76
00:04:45,710 --> 00:04:47,870
So what works on a simulator.

77
00:04:48,680 --> 00:04:55,220
So in the next story all you're going to learn how to run your Android app on a real Android device.

78
00:04:55,490 --> 00:05:02,970
But I just opened a new Web page here for you so you can actually just enter this you are well inside

79
00:05:02,970 --> 00:05:09,780
the search part of your web browser developer at that and red dot com slash training slash basics.

80
00:05:09,800 --> 00:05:16,490
So that first app slash running app that DML or you can just in google if I click on dispatch button

81
00:05:16,490 --> 00:05:22,730
here in Google search for how to run Android app on a real Android device and just click on this link

82
00:05:22,790 --> 00:05:24,830
that is actually related to the tree.

83
00:05:24,920 --> 00:05:27,490
They will have heard that and it does come at this link.

84
00:05:27,560 --> 00:05:29,540
And then you will be guided to this page.

85
00:05:29,990 --> 00:05:35,290
So here it is run on the road and with the Weiss set up your device as follows.

86
00:05:35,300 --> 00:05:41,240
Connect your device to your development machine with a USP cable so first you need to disconnect your

87
00:05:41,240 --> 00:05:46,250
device to your machine whether it is a Mac or a Linux or Windows.

88
00:05:46,400 --> 00:05:52,220
If you are developing on windows you might need to install the appropriate USP driver for your device

89
00:05:52,230 --> 00:05:54,110
so this is very important.

90
00:05:54,110 --> 00:05:57,750
In other words you must install the US video driver.

91
00:05:57,760 --> 00:06:04,550
So let me just open it in another tap so you need to actually install the driver you initiated read

92
00:06:04,550 --> 00:06:13,240
the documentation here and here you can see the types of and the voices of different companies.

93
00:06:13,270 --> 00:06:18,330
You can just click on them and then download the specific driver of your specific Android device.

94
00:06:18,580 --> 00:06:24,070
So here you can see that it has enabled us to be debugging in developer options as follows.

95
00:06:24,070 --> 00:06:31,900
First you must enable the developer options open the settings app of your device and it is only on Android

96
00:06:31,990 --> 00:06:33,160
8 or higher.

97
00:06:33,160 --> 00:06:34,130
Select system.

98
00:06:34,150 --> 00:06:42,060
So this second step is for devices that run Android 8 and then you need to go to the first step.

99
00:06:42,100 --> 00:06:44,740
Scroll to the bottom and select about 4.

100
00:06:44,860 --> 00:06:50,470
Scroll to the bottom and tap and tap beat number bit number 7 times.

101
00:06:50,470 --> 00:06:56,050
You need to tap the number 7 times and then the developer options is going to be enabled return to the

102
00:06:56,050 --> 00:06:59,550
previous screen to find the will of options near the bottom.

103
00:06:59,610 --> 00:07:06,610
Open the will of the options and then scroll down to find and enable us debugging option the checkbox

104
00:07:07,320 --> 00:07:10,120
and then you can't run the app on your device as follow.

105
00:07:10,180 --> 00:07:17,620
In Android studio click the app module in the project window and then select Run or you just click on

106
00:07:17,620 --> 00:07:18,780
the play button at the top.

107
00:07:18,790 --> 00:07:24,100
You already know how to do that and that in the select deployment target window select your device and

108
00:07:24,100 --> 00:07:27,310
click ok by selecting the deployment target.

109
00:07:27,310 --> 00:07:33,130
It means this one select deployment target that you will see that day connected device and then you

110
00:07:33,130 --> 00:07:35,180
can run your app and then be connected.

111
00:07:36,010 --> 00:07:41,080
So it says and with studio installs the installs you up on your connected device and started.

112
00:07:41,080 --> 00:07:44,950
You should now see Hello World displayed in the app running your device.

113
00:07:45,220 --> 00:07:49,240
So you already know how to run your app on an emulator.

114
00:07:49,420 --> 00:07:50,250
So that's it.

115
00:07:50,530 --> 00:07:54,690
Thank you very much for watching and I look forward to seeing you in the next tutorial in the next tutorial

116
00:07:54,730 --> 00:07:59,290
you're going to learn how to just download a specific uSwitch driver.

117
00:07:59,320 --> 00:08:06,340
If you cannot find it here inside is a web page and you're going to learn some tricks and tips in order

118
00:08:06,340 --> 00:08:08,930
to run your app on an actual device.

119
00:08:08,960 --> 00:08:12,460
So thank you very much for watching and I look forward to seeing you in the next tutorial.

