Programming with Mobile Applications

flosssnailsΚινητά – Ασύρματες Τεχνολογίες

10 Δεκ 2013 (πριν από 3 χρόνια και 6 μήνες)

163 εμφανίσεις

Programming with Mobile
Applications

Chapter 4: Google Android: App Inventor

In Chapter 4, You Learn to…


Describe the Android architecture


Use Google App Inventor to create Android apps


Use the App Inventor app designer


Use the App Inventor Blocks Editor


Use non
-
visible components


Incorporate messaging, locations, and media into
an app


Deploy an app created with App Inventor


2

Programming with Mobile Applications

Android Architecture


Linux kernel



This component is the OS; it’s
the communication layer between the
hardware and the software.


3

Programming with Mobile Applications

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.


4

Programming with Mobile Applications

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.

5

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.

6

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. It’s the layer that’s directly
available to users.


7

Programming with Mobile Applications

Android Architecture (continued)

8

Programming with Mobile Applications

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.


9

Programming with Mobile Applications

Access to Android Features Including…


Data storage


Location services via GPS


Telephony


Messaging capabilities


and more…

10

Programming with Mobile Applications

App Inventor Workspace

11

Programming with Mobile Applications

Figure 4
-
2 The App Inventor workspace

App Inventor Blocks Editor

12

Programming with Mobile Applications

Figure 4
-
7 The Blocks Editor workspace

Hello App Inventor!

13

Programming with Mobile Applications

Hello App Inventor! (continued)

14

Programming with Mobile Applications

Starting the Emulator

15

Programming with Mobile Applications

The Android Emulator

16

Programming with Mobile Applications

Figure 4
-
16 The locked emulator

Connecting to the New Emulator

17

Programming with Mobile Applications

Hello App Inventor Running

18

Programming with Mobile Applications

Figure 4
-
18 The HelloAppInventor app running in the emulator

Packaging and Deployment

19

Programming with Mobile Applications

Where’s My Phone?

20

Programming with Mobile Applications

Where’s My Phone? (continued)

21

Programming with Mobile Applications

Where’s My Phone? (continued)

22

Programming with Mobile Applications

Figure 4
-
29 Sending a text message to the Where’s My Phone? emulator

Where’s My Phone? (continued)

23

Programming with Mobile Applications

Figure 4
-
30 Message received and response sent