Why Android?

Android runs on what is called a virtual machine (VM), specifically known as the Dalvik Virtual Machine (DVM), which runs within the entire Android framework (see Figure 1-1). VMs are designed so that the code is interpreted instruction by instruction at runtime rather than compiled into a binary format to be executed at a later stage.

Image

Figure 1-1 Android framework

In an iOS binary everything is known at compile time. The phone chip, type of phone, and version of iOS are all known when the developer readies his or her app for the iTunes app store. In this way, only the minimum amount of instructions and data is stored in the file ...

Get Bulletproof Android™: Practical Advice for Building Secure Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.