LiveCode mobile development beginner's guide : create fun ... - GBV

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

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

100 εμφανίσεις

LiveCode
Mobile
Development
Beginner's
Guide
Create
fun-filled,
rich
apps
for
Android
and iOS with
LiveCode
Colin
Holgate
[
PUBLISHING
BIRMINGHAM
-
MUMBAt
]
Table of Contents
Preface
1
Chapter
1:
LiveCode
Fundamentals
7
Background history
and
metaphors
8
You
do have
LiveCode,
don't
you?
9
Learning
the
lay
of
the land
9
Main windows
10
Time
for action
-
it's
a
drag,
but
you'll
like it!
11
Creating
a
hierarchy
13
Stack
structure
14
Where code
goes
14
Time
for
action
-
making
and
navigating
between cards
15
Making
a
simple
calculator
application
18
Inspector
clues,
oh...
18
Time for action
-
making
the calculator
buttons
19
Verbosity,
synonyms,
and"me"
20
Adding
the card handlers
22
Variable
types
in LiveCode
24
Extending
the calculator
27
Other interface
controls
28
Video
player
control
28
Still
image
control
28
Rollover buttons
28
Many
More
Controls...
30
Debugging
30
RunRev's online tutorials
32
Summary
32
Chapter
2:
Getting
Started with LiveCode
Mobile
35
iOS,Android,
or
both?
36
Table
of
Contents
Becoming
an
Android
developer
36
Android Market
36
Amazon
Appstore
40
Downloading
the Android
SDK
44
Installing
Android
SDK
on
Mac
OS
X
(Intel)
45
Installing
Android SDK
on
Windows
46
Pointing
LiveCode
to
the Android SDK
47
Becoming
an
iOS
developer
49
Installing
Xcode
57
Pointing
LiveCode
to
the iOS SDKs
59
Before
we can
make
our
first
mobile
app
60
Getting ready
to test
for Android
60
Time
for action
-
starting
an
Android virtual device
60
Connecting
a
physical
Android device
61
Using
a
Kindle
Fire
61
Time
for action
-
adding
a
Kindle Fire
to
ADB
62
Getting
ready
to test
for iOS 64
Time
for
action
-
using
the iOS simulator
64
Appiness
at
last!
64
Time for action
-
testing
a
simple
stack in the simulators
65
Time for action
-
testing
a
simple
stack
on
devices
66
Further
reading
67
Summary
68
Chapter
3:
Building
User interfaces 69
Setting
up
a
test bed mobile
app
70
Time
for
action
-
making
the
test
bed
stack
70
Invoking
the
desktop
e-mail
application
72
Time for
action-calling
the native e-mail
application
72
Installing
the e-mail
test onto
devices 72
Time
for
action
-
trying
test
bed stack
on
devices
73
Opening
a
web
page
75
Time
for
action
-
calling
the
native
browser
application
75
Mobile-only,
date
picker
76
Time for action
-
showing
a
date
picker
77
Mobile-only,loading pictures
77
Time for action
-
loading pictures
78
Making
OS
styled
buttons
79
Using
bitmaps
80
Time
for
action
-
using Photoshop
to
prepare
button
states
80
MobGUI
to
the
rescue!
83
Time for action
-
getting
started with MobGUI
84
Table
of
Contents
Test bed
app,
the MobGUI
way
86
Time for action
-
using
MobGUI
to
make
a
test
bed
app
86
MobGUI
native controls
88
Time
for
action
-
using
native controls from MobGUI
89
Adjusting things
for different
screen
sizes
91
Layout using
a
resize handler
91
Time for action
-
simple
code
layout
example
92
Layout using
the LiveCode
Geometry
Manager
93
Time
for
action
-
using
the
Geometry
Manager
to
position
buttons
94
Layout using
MobGUI
95
Time for action
-
using
MobGUI
to
remember
layouts
for
us
95
Further
reading
96
Summary
97
Chapter
4:
Using
Remote Data
and Media
99
Stack
structure 100
Code driven and
manually
created
layouts
100
Locations for code
101
Loading
and
saving
external data
103
Querying
a
URL
103
Reading
and
writing
to
a
text
file
105
Using
another stack
to store
data
107
Time for action
-
creating
a
data
save
stack
107
Creating
a
web
"scraper"
app
110
Time for
action
-
setting
up
tab
navigation
110
The Browser card
112
Time for
action
-
adding
the browser controls
113
The Links card
114
Time for action
-
making
a
links
extraction
function 115
The
missing
links
118
One
more
thing...
118
Time for action
-
adding
the Links card"init"handler
118
The Text card
120
Time for action
-
setting
up
the
Text
card
120
The
Media card
121
Time
for action
-
extracting
a
list of media links
121
Time for action
-
setting
up
the Media card
scripts
123
The
Keepers
card
125
Time for Action
-
setting
up
the
Keepers
card 126
What
now?
129
Summary
129
Table
of
Contents
Chapter
5:
Making
a
Jigsaw/
Puzzle
Application
Image
data
format
Mystery
byte...
Misusing
imageData!
Time
for action
-
testing
a
getPixel
function
Simulating
lots and lots
of buttons
Time
for action
-
making
a
map
of the United States
Using
maskData for collision detection
Time
for action
-
making
a racecourse
Time for
action
-
making
a race car
Making
a
jigsaw
puzzle
Going
to
pieces...
Time
for action
-
creating
the
pieces
and
choosing
an
image
Time
for action
-
transferring imageData
Adding interactivity
Time
for action
-
setting
up
touch
events
Summary
Chapter
6:
Making
a
Reminder
Application
159
What
is
a
"reminder"?
When?
Date
and
time
pickers
Time
for action
-
creating
date and time
pickers
Where?
Time for
action
-
trying
out
native
location
tracking
Calculating
the distance
between two
points
on
Earth
What?
Making
the reminders
app
Laying
out
the cards
Time
for action
-
creating
the reminder
app
screens
Stack level
scripts
Time
for action
-
adding
Stack level functions
Home
card
scripts
Time
for
action
-
making
the Home card
buttons
work
Creating
a
location card
Time for action
-
making
the location card work
Reminder
entry
form
Time for action
-
taking
in information about the reminder
Summary
Chapter
7:
Deploying
to
Your Device
Standalone
Application
Settings
Table
of
Contents
General
188
Stacks
189
Copy
Files
189
iOS
189
Build for
190
Basic
Application
Settings
191
Icons
192
Splash
Screens
193
Orientation
Options
194
Custom URL Scheme
194
Requirements
and Restrictions
194
Status
Bar
195
Android
196
Basic
Application
Settings
196
Requirements
and
Restrictions
198
Application
Permissions
198
User
Interface
Options
199
Building
Apps
for Beta Testers
199
Sending
an
Android
App
to testers
199
Preparing
an
iOS
App
so
that
it
can
work
on someone
else's device
200
Creating
"over
the
air"installers for iOS
202
AirLaunch
202
BetaBuilder
203
TestFlightApp.com
204
Creating
an
app
store
submission file
204
Finding
and
using
the
Android
Keytool
application
204
Creating
a
distribution certificate for iOS
206
Uploading
to
the
app
stores
208
What's similar
209
What's different
209
Bottom line
209
Summary
210
Appendix:Extending
LiveCode
211
The
story
so
far...
211
Extending
LiveCode
212
MobGUI
212
tmControl
213
DropTools
Palette
214
mergExt
215
Creating
you
r own
add-ons
216
Custom controls
216
Externals
216
Table
of
Contents
Pop
Quiz
Answers
..
219
Chapter
1,
LiveCode Fundamentals
219
Chapter
2,
Getting
Started with LiveCode Mobile
220
Chapter
3,
Building
User
Interfaces
220
Chapter
4,
Using
Remote Data and
Media
221
Chapter 5,Making
a
Jigsaw
Puzzle
Application
221
Chapter 6,
Making
a
Reminders
Application
222
Index
223