Skip to main content

Android Emulator crashes at IPhone resolution? Coincidence?

 
The screen resolution of the IPhone XS is 2436x1125 pixels. And it has a 5.8 inch display.

When I'm developing android apps, I use Android emulators to test them. They are also quite fun to play around with when you are bored.

More specifically, I use Android Studio's emulators. Android Studio is developed by Google and is the main route to go down for developing Android apps. You can create and manage emulators using its built-in 'AVD Manager'.

You can download from a selection of different emulators with different Android OS versions each emulating different hardware.

You can also change the resolution from a list of presets. Or add your own display settings.

Now on to the fun stuff:


Recently a friend told me he was trying to change Android emulator resolutions to test his app at IPhone screen resolutions, because he didn't have an IPhone himself. [ I'm aware Android emulators are not a good subsitute for iOS emulators, but the point I'm trying to make is ... ]

When he added these custom display resolutions, the emulator always crashed when it started up.

... ?

So I decided to investigate and I was able to reproduce the problem when using the IPhone XS screen resolutions. But, when I used any other screen resolutions, even literally 1 pixel added to the width, the emulator worked perfectly.

That seemed weird.

The only resolution Google's technology refused to work with just happened to be used by one of Apple's devices.

To this date I am yet to find an explaination. If I find one, I'll post it here.

Does this seem like a coincidence? I really have no idea.

Perhaps it's meant to be a joke by Google. Or maybe there is a genuine reason like copyright issues.

If you are reading this and know the answer please comment below.

Comments

Popular posts from this blog

Terminals in Sublime Text 3

TL;DR - Need a quick answer on how to create terminals in Sublime Text 3? Scroll down and watch the video or read the instructions below it. A while ago I started a series on YouTube of 'Sublime Text Tips'. Sublime Text 3 is one the best code editors currently in existence (fact), but most people just install it an use it without realising how it can be customized and extended to meet your needs. My aim was to release a series of videos explaining some of these widely unknown capabilities. I got as far as the third video and then got distracted with other things 😅 But recently I noticed the 3rd video I made has been increasing in popularity. For at least 6 months it sat at less than 200 views, and over the course of the last 2 months it has shot up to 850 (at the time of writing). Perhaps it's coincidence, or perhaps YouTube's algorithms have changed. Either way, there seem to be people who want this information. The video explains how to set up termin

Generating a MSI Installer for a WPF Application

This post serves as a tutorial for creating a MSI installer for your WPF Applications in Visual Studio. For this we use WiX (recommended by Microsoft). Prerequisites I assume you already have a Visual Studio solution containing a WPF Project. And I assume you have some experience with Visual Studio and XML. You do not need any prior knowledge of WiX. Step 1: Install Wix We are going to need WiX to generate our MSI. If you don't already have Wix installed, go ahead and download it from here . You'll be redirected to the relevant GitHub releases page where you can download the .exe file to install WiX.

Best Packages for Sublime Text 3 (Excluding Themes)

Sublime Text 3 is pretty good out-of-the-box but reaches a whole new level when you install some of the great packages on offer. Below I'll list my favourite packages for Sublime Text. These are all packages which will enhance your productivity across all languages, so no themes or language-specific packages will be listed here.