Simple Android App using Android Studio
1. Target of this exercise
In this exercise you create an Android project and start it on an Android virtual device via Android Studio.
2. Create a new Android project
Press the Start a new Android Studio project link to get started. Alternatively you can select the → entry from the menu.
Use the following data of input for your project. Project location and package name are derived from your input. If you want another package name, press the small Edit hyperlink.
Table 2. Setting for your Android project
|Application name||Test App|
|API (Minimum, Target, Compile with)||Latest|
Android Studio automatically downloads the required Android SDK, if that has not already been done. So depending on your installation, the next dialog might not be displayed.
Afterwards select the Empty Activity template.
On the last page, accept the defaults.
3. Review the generated project
The above wizard generates based on your input an Android project. Review the generated project structure and files.
4. Create a virtual device (AVD)
Define a new Android Virtual Device (AVD) by opening the AVD Manager via→ → . Afterwards press the button.
Select values similar to the following screenshots.
On the next screen select the latest API level for your AVD. You may need to select the option for additional images as highlighted in the following screenshot.
Afterwards press thebutton. This will create the AVD configuration and display it under the list of available virtual devices.
5. Start your virtual device
Select your new entry and press thebutton.
6. Start the application on your virtual device
Select→ to start your application. This opens a dialog in which you can select your device to deploy your application to.
After a while your application should start on the virtual device.