Configuring an emulator
During this tutorial, we will need to launch our application several times to see how it responds to the code we assigned it. To do this, Android Studio allows to configure an emulator, somewhat greedy on small configurations but very configurable. Thus, you will have the possibility to test your application on several phones with different versions of Android.
To configure one of your phones, click the following icon:
Then click on « Create Virtual Device »:
Then choose the phone of your choice (Basic Nexus 5):
Choose the system version (Basic Nougat):
Assign a name to your machine and click « Finish »!
And here is your emulator is ready, now return to the menu and click the play button:
You will then be able to choose which machine will launch your application!