{"id":8028,"date":"2020-03-20T15:57:55","date_gmt":"2020-03-20T15:57:55","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=8028"},"modified":"2020-03-20T16:00:20","modified_gmt":"2020-03-20T16:00:20","slug":"creating-an-android-virtual-device","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/creating-an-android-virtual-device\/","title":{"rendered":"Creating an Android Virtual Device"},"content":{"rendered":"<p>Whilst running Android applications on a real device is pretty quick nowadays, it&#8217;s still useful to run our apps against an emulator. <\/p>\n<p>In this post we&#8217;re going to look at creating an emulator which works\/looks like a Samsung s10e.<\/p>\n<p><strong>Device information and skins<\/strong><\/p>\n<p>In the case of Samsung devices, simply visit <a href=\"https:\/\/developer.samsung.com\/galaxy-emulator-skin\/overview.html\" rel=\"noopener noreferrer\" target=\"_blank\">Samsung, Emulator Skin Overview<\/a>.<\/p>\n<p>Here you can find skin downloads (to give your emulator more of a look of the device) along with device information, such as screen size, resolution etc. Download the skin.<\/p>\n<p><em>Note: You&#8217;ll need to be registered on the Samsung developer site to download the skins, but it&#8217;s a painless process.<\/em><\/p>\n<p>In the case of the s10e, the device has a 5.8 inch display and a resolution of 1080&#215;2280. So we&#8217;re put that information into our virtual device in a minute, before we do that, extract the downloaded skin into the following folder<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n%USERPROFILE%\\AppData\\Local\\Android\\Sdk\\skins\\samsung_s10e\r\n<\/pre>\n<p>Now we&#8217;re got all the relevant skin related files let&#8217;s move onto creating our virtual device.<\/p>\n<p><strong>Android device manager<\/strong><\/p>\n<p>From Visual Studio or Android Studio, locate the button to run the Android Device Manager. In either case either press New&#8230; or Create Virtual Device&#8230;<\/p>\n<p>To save trying to describe both UI&#8217;s I&#8217;m going to stick with the Android Studio UI. So after click on Create Virtual Device, do the following<\/p>\n<ul>\n<li>Click New Hardware Profile<\/li>\n<li>Set Device Name to Samsung S10e<\/li>\n<li>Ensure Device Type is Phone\/Tablet<\/li>\n<li>Set screen size to 5.8<\/li>\n<li>Set Resolution to 1080 x 2280<\/li>\n<\/ul>\n<p>Leave all other options as they are but now scroll down to the Default Skin option. Clicking on the \u2026 button does nothing until you switch from <em>No Skin<\/em> to select a skin, any skin will work. Don&#8217;t worry if you get a warning about the skin not being the right size as we&#8217;re going to change it now. Click on the \u2026 button and locate the samsaung_s10e folder we put the skin files into.<\/p>\n<p>Finally, click Finish.<\/p>\n<ul>\n<li>With the new device selected, press the Next button<\/li>\n<li>Currently the s10e is running Android Pie API Level 28, so select this or your preferred version of Android<\/li>\n<li>Press Next and if all looks good, then press Finish<\/li>\n<\/ul>\n<p>If you need to edit the configuration you can do so via the Android Virtual Device Manager, you&#8217;ll need to select the device and then click the edit button. You&#8217;ll need to click the Show Advanced Settings button to change memory, or if you wish to change the skin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whilst running Android applications on a real device is pretty quick nowadays, it&#8217;s still useful to run our apps against an emulator. In this post we&#8217;re going to look at creating an emulator which works\/looks like a Samsung s10e. Device information and skins In the case of Samsung devices, simply visit Samsung, Emulator Skin Overview. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[120],"tags":[],"class_list":["post-8028","post","type-post","status-publish","format-standard","hentry","category-android"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=8028"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8028\/revisions"}],"predecessor-version":[{"id":8031,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/8028\/revisions\/8031"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=8028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=8028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=8028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}