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

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.

Local Storage Models in Blazor

Blazor is a new web framework by Microsoft which ships with .NET Core. In this post I explain how to use Local Storage in Blazor using the Blazored.LocalStorage package and how to improve on this by creating a custom service allowing you to use models (classes with properties) instead of string keys.

Blazored.LocalStorage First I explain how to use local storage in Blazor. I assume you already have a blazor project setup.

Install the Blazored.LocalStorage package with using NuGet. This can be done using the command in the Visual Studio package manager: Install-Package Blazored.LocalStorage
Then in the 'Startup.cs' file add the following line to 'ConfigureServices' to make the LocalStorage service available through dependency injection: services.AddBlazoredLocalStorage();
Now you are ready to use local storage on your pages. To import the namespace on all pages you can add the following line to '_Imports.razor': @using Blazored.LocalStorage
Now within…

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.