Ever since April 2009, when version 1.5 of the Android mobile operating system was released, the operating systems have been code-named some type of dessert.
Android supports, at the time of this blog post, Android 6.0 (Marshmallow, API Level 23, Released October 5, 2015), Android 7.0 (Nougat, API Level 24, Released August 22, 2016), and Android 7.1.1 (Nougat, API Level 25, October 4, 2016).
We'll be setting up using Android Virtual Device Manager two virtual Android devices.
But what devices should we set up? For that, we can go to the Android Dashboards at https://developer.android.com/about/dashboards/index.html
Version | Codename | API | Distribution |
---|---|---|---|
2.3.3 - 2.3.7 | Gingerbread | 10 | 0.9% |
4.0.3 - 4.0.4 | Ice Cream Sandwich | 15 | 0.9% |
4.1.x | Jelly Bean | 16 | 3.5% |
4.2.x | 17 | 5.1% | |
4.3 | 18 | 1.5% | |
4.4 | KitKat | 19 | 20.0% |
5.0 | Lollipop | 21 | 9.0% |
5.1 | 22 | 23.0% | |
6.0 | Marshmallow | 23 | 31.2% |
7.0 | Nougat | 24 | 4.5% |
7.1 | 25 | 0.4% |
Data collected during a 7-day period ending on April 3, 2017.
Any versions with less than 0.1% distribution are not shown.
Any versions with less than 0.1% distribution are not shown.
... And it looks like with screen sizes, most people seem to be using a Normal screen, hdpi or xhdpi.
Let's remember that when we create two emulated devices.
Android Virtual Device Manager
Dependencies and prerequisites
The easiest way to kick this off is through Android Studio:
Once we are at the "Your Virtual Devices" homescreen, let's select "Create Virtual Devices".
Randomly picking two emulators, I chose:
When selecting Operating Systems, let's choose the updated version of Nougat, and the updated version of Marshmallow to start. Later on, it would be wise to also test on Lollipop, since so many seem to be still using that Android operating system version.
I needed to download the older versions of Marshmallow, and Lollipop. They were installed by default in ~/Library/Android/sdk.
Nexus S, I paired with Marshmallow, Android 6.0, and gave it an AVD Name of Nexus S Marshmallow.
Galaxy Nexus, I paired with Nougat, Android 7.1.1, and dubbed it Galaxy Nexus Nougat.
Need more help? See Developer.Android's section on Create and Manage Virtual Devices at https://developer.android.com/studio/run/managing-avds.html
If you go to the Mac Terminal, you will see if you type: emulator -list-avds
Galaxy_Nexus_Nougat
Nexus_S_Marshmallow
Now, we can go back to the AVD Manager, and launch the Nexus_S_Marshmallow.
Going to the Mac Terminal and running: adb devices
List of devices attached
emulator-5554 device
So, now we have two emulators set up for testing, with one of them running!
Happy Testing!
-T.J. Maher
Twitter | LinkedIn | GitHub
// Sr. QA Engineer, Software Engineer in Test, Software Tester since 1996.
// Contributing Writer for TechBeacon.
// "Looking to move away from manual QA? Follow Adventures in Automation on Facebook!"
- Android Studio 2.0 or higher
- SDK Tools 25.0.10 or higher
- adb integration enabled through Android Studio > Tools > Android > Enable ADB Integration
The easiest way to kick this off is through Android Studio:
- Launch Android Studio
- Go to Tools -> Android -> AVD Manager
Once we are at the "Your Virtual Devices" homescreen, let's select "Create Virtual Devices".
Randomly picking two emulators, I chose:
- Nexus S, with 480 x 800 resolution, to capture the hdpi screen type.
- Galaxy Nexus, with 720 x 1280 resolution, to capture the xhdpi screen type.
When selecting Operating Systems, let's choose the updated version of Nougat, and the updated version of Marshmallow to start. Later on, it would be wise to also test on Lollipop, since so many seem to be still using that Android operating system version.
I needed to download the older versions of Marshmallow, and Lollipop. They were installed by default in ~/Library/Android/sdk.
Nexus S, I paired with Marshmallow, Android 6.0, and gave it an AVD Name of Nexus S Marshmallow.
Galaxy Nexus, I paired with Nougat, Android 7.1.1, and dubbed it Galaxy Nexus Nougat.
Need more help? See Developer.Android's section on Create and Manage Virtual Devices at https://developer.android.com/studio/run/managing-avds.html
If you go to the Mac Terminal, you will see if you type: emulator -list-avds
Galaxy_Nexus_Nougat
Nexus_S_Marshmallow
Now, we can go back to the AVD Manager, and launch the Nexus_S_Marshmallow.
Going to the Mac Terminal and running: adb devices
List of devices attached
emulator-5554 device
So, now we have two emulators set up for testing, with one of them running!
Learning Appium Desktop
- Part One: What is Appium Server and How Do You Start It With Appium Desktop
- Part Two: How to Connect To Your Android Device Using the Android SDK, the Android Command Line Tools, and the Android Debug Bridge
- Part Three: Setting up remote devices through WiFi
- Part Four: Setting up Android Emulators with Android Virtual Device Manager (avd), choosing the Android operating system version
- Part Five: Find the Desired Capabilities: appPackage and appActivity. Bug in AAPT if giving just appName
- Part Six: Inspecting an Android app using Appium Desktop
Happy Testing!
-T.J. Maher
Twitter | LinkedIn | GitHub
// Sr. QA Engineer, Software Engineer in Test, Software Tester since 1996.
// Contributing Writer for TechBeacon.
// "Looking to move away from manual QA? Follow Adventures in Automation on Facebook!"
1 comment:
Đặt vé tại phòng vé Aivivu, tham khảo
mua ve may bay di my
ve may bay my ve vietnam
giá vé nhật việt
chuyến bay từ đức về hà nội hôm nay
khi nào có chuyến bay từ canada về việt nam
Có chuyến bay từ Hàn Quốc về Việt Nam không
chi phí vé máy bay cho chuyên gia nước ngoài
Post a Comment