Testing on the host's JVM
We left this subject for the end of this chapter, as it seems this is the Holy Grail of the Android platform.
Android is based on a virtual machine named Dalvik, after a village in Iceland, optimized for mobile resources with limited capabilities such as constrained amount of memory and processor speed. Thus representative of a mobile device but certainly a very different environment than our memory rich and speedy host computers, typically having plenty of memory and processor speed to enjoy.
Ordinarily, we run our applications and tests on an emulator or device. These targets have a much slower real or emulated CPU. Thus, running our tests is a time-consuming activity, mainly when our project starts to grow. Applying ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access