Beruflich Dokumente
Kultur Dokumente
ANDROID EDITION
Table of Contents
How to Build an App: Android Edition
1
12
16
features.
experience.
of worldwide smartphone
shipments in Q2 of 2013
state of play.
ecosystem and the Cloud. The ecosystem consists of resources like Android
in business.
Step 1
DECIDE WHAT NEW THING
YOU WANT TO DO
app.
or another smartphone.
need them.
Google Play.
next step.
Step 2
DEFINE YOUR MVP
three reasons:
existed)
buyer to discern.
MVP Takeaways
GPS?)
NFC (i.e., can devices share data by
touching?)
Product
soon as it is available)
tion
Step 3
DESIGN YOUR APP
those widgets?
rewrite.
Facebook.
functions yourself.
ID
O
R
D
N
A
Y
H
W
CrossCompatibility
Open
Platform
Market
Growth
International
Growth
Free
Tools
1. Cross-Compatibility
Why Android?
10
4. International Growth
2013.
ment.
DROID
N
A
t
o
N
Y
H
W
Customers less
willing to pay
High diversity
of devices
11
Not in the
Apple ecosystem
12
Step 4
Android SDK
Eclipse IDE
Android ADT
13
ment environment)
Android ADT.
updates.
Installing the JDK
For Android app development youll
instructions.
2. Android SDK
Android Platform-tools
the emulator
14
ing
tools
Android Support Library (in the
Development Takeaways
tree)
Java classes
Another Extra you can check to install is
operating system
2. Android SDK
3. Eclipse IDE
4. Android ADT
15
Step 5
DEVELOPING YOUR APP
16
com.example.myrstapp
(Gingerbread)
Delete One.
icon
Click Next
17
AndroidManifest.xml
activity_main
you.
18
Explorer.
scr/
Besides the manifest, other elements in
res/
gen/
the project).
bin/
19
layout.
Button.
used.
text, in red):
--
20
accomplishment.
Making a Toast
requested
backend model
22
Figure X
Figure Y
jects.
The complete Test Drive project can be downloaded from here. To illustrate
steps 6 and 8 listed above, however, we will highlight some specic sections of
the code. Lets start with step 6, authentication.
Step 8 is mapping the app data to the model we just congured at Kinvey. You
can use any class that extends the GenericJson class, in this app example,
thats a TestEntity class that has a string name. It looks like this:
24
Now lets look at the method that does the save. The method is called in the
onClickListener of the save_button. When the activity loads, it will create a new
static TestObject with id "12345". When the save button is clicked the following
method will trigger the dummy TestObject to be saved in the testObjects collection.
Here line 2 creates a handle to the backend collection where the object is saved.
Lines 3 through 21 save the object and displays an alert if the save is either
successful or fails. Likewise, the load method looks like this:
Line 2 creates a handle to the backend collection that has the object to load. Line 3
instantiates an instance of TestObject for the library into which the data is loaded
from the backend. And lines 4 through 23 load the object and display an alert if the
load is either successful or fails.
25
26
Written by
Morgan Bickle
Randall Cronk
Designed by
Jake McKibben and Lauren Pedigo