Академический Документы
Профессиональный Документы
Культура Документы
Applications
Chapter 4: Google Android: App Inventor
Android Architecture
Linux kernel This component is
the OS; its the communication layer
between the hardware and the
software.
Android Architecture
(continued)
Android runtime components
This component includes the Dalvik
virtual machine (a specialized virtual
machine for low-memory appliances)
and the core libraries, described
next.
Android Architecture
(continued)
Core libraries Developers have
access to all the core libraries
Android supplies, such as SQLite,
FreeType, and SGL the Scalable
Graphics Library used by Android.
Note that access to these core
libraries is what makes Android stand
out from its peers.
Programming with Mobile Applications
Android Architecture
(continued)
Application framework You use this
component to write applications that
make use of the core libraries and any
libraries you create. It includes a Content
Provider, a Resource Manager, an
Activity Manager, a Notification Manager,
and more. It also includes many views
you can access, including a wide variety
of user interface components.
Programming with Mobile Applications
Android Architecture
(continued)
Applications The uppermost
component is the application layer. It
includes built-in apps, such as a Web
browser and e-mail, as well as any
apps you write. Its the layer thats
directly available to users.
Android Architecture
(continued)
Figure
2-2 The Android architecture
App Inventor
App Inventor is a Web-based IDE for
creating Android apps.
App Inventor includes a user interface
designer and a code block editor.
Instead of writing code, you assemble
prefabricated blocks of code.
App Inventor gives you access to
powerful Android libraries you can use
when creating apps.
Programming with Mobile Applications
Data storage
Location services via GPS
Telephony
Messaging capabilities
and more
10
11
12
13
14
15
16
17
18
19
Wheres My Phone?
20
Wheres My Phone?
(continued)
21
Wheres My Phone?
(continued)
Figure 4-29 Sending
a text message to the Wheres My
Phone? emulator
22
Wheres My Phone?
(continued)
Figure 4-30
Message received and response
sent
23