One of the things I’ve consistently heard from just about anyone involved in Android development are laments about the sorry state of the Android Emulator included in Google’s Android Studio. It seems that particularly its performance is not great, with people often resorting to third-party options or real devices. Well, it seems the Android development team at Google has taken this to heart, and has spent six months focusing almost solely on fixing up the Android Emulator.
We know how critical the stability, reliability, and performance of the Android Emulator is to your everyday work as an Android developer. After listening to valuable feedback about stability, reliability, and performance, the Android Studio team took a step back from large feature work on the Android Emulator for six months and started an initiative called Project Quartz. This initiative was made up of several workstreams aimed at reducing crashes, speeding up startup time, closing out bugs, and setting up better ways to detect and prevent issues in the future.
↫ Neville Sicard-Gregory at the Android Developers Blog
Steps taken include moving to a newer version of Qt for the user interface of the emulator, improving the graphics rendering system used in the Android Emulator, and adding a whole bunch of tests to their existing test suite. The end result is that the number of crashes in the Android Emulator dropped by 30%, which, if bourne out out in the real world, will have a material impact for Android developers. During the Project Quartz effort, Google also cut the number of open issues by 44%, but they do note only 17% of those were fixed during Project Quartz, with the remainder being obsoleted or previously fixed issues.
If you download or update to the latest version of Android Studio, you’ll get the new and improved Android Emulator as well.
I can agree that the Android Emulator can act a bit wonky.
Thom Holwerda,
Here here! I haven’t tried the new android emulator yet, but if it works it will be a much needed improvement! It’s great that google decided to fix it, but why now? This problem has existed for decades and it was even worse back then because computers were even slower than today. Virtually unusable. It makes me wonder if google’s own employees even used the emulator themselves. I’d imagine it was way too slow for google internally and google’s solution was probably just to buy more dedicated hardware for development instead.
I flirted briefly with using the emulator to sandbox my interactions with Android apps.
EdgeWiseInAnnArbor,
Another use case could be running android apps on a computer when vendors stop providing support for desktop users.
This was probably a decade ago, but my bank discontinued desktop check deposits. Going forward they were forcing customers to use their ios or android apps. And when I say “android”, I mean just android. Customers who ran LineageOS like me were not welcome. No surprise that I was extremely inconvenienced by this. It was their official policy and they were sticking by it.
To work around that I tried to install the bank app inside of android emulators – at least I would be able to checks my checks without resorting to “sneaker-net”. Although I found that that PC webcam DID work inside of the android emulator, the app still refused to run in the emulator. It must have been DRM or some other unknown incompatibility 🙁