Ibrahim D. Android App Development for Electronics Designers 2018.pdf

(24537 KB) Pobierz
WITH
BASIC
FOR
ANDROID
-
B4A_______
ANDROID
APP
DEVELOPMENT
FOR
ELECTRONICS
DESIGNERS
Android
App
Development
for
Electronics
Designers
Dogan
Ibrahim
LEARN
DESIGN
SHARE
This
is
an
Elektor
Publication.
Elektor
is
the
media
brand
of
Elektor
International
Media
B.V.
78
York
Street,
London
W1H
1DP,
UK
Phone:
(+44)
(0)20
7692
8344
All
rights
reserved.
No
part
of
this
book
may
be
reproduced
in
any
material
form,
including
photocopying,
or
storing
in
any
medium
by
electronic
means
and
whether
or not
transiently
or
incidentally
to
some
other
sue
of
this
publication,
without
the
written
permission
of
the
copyright
holder
except
in
accordance
with the
provisions
of
the
Copyright
Designs
and
Patents
Act
1988
or
under
the
terms
of
a
licence
issued
by
the
Copyright
Licencing
Agency
Ltd.,
90
Tottenham
Court Road,
London,
England
W1P
9HE.
Applications
for
the
copyright
holder's
permission
to
reproduce
any
part
of
the
publication
should
be
addressed
to
the
publishers.
Declaration
The
author
and
publisher
have
used
their
best
efforts
in
ensuring
the
correctness
of
the
information
contained
in
this
book.
They
do
not
assume,
or
hereby
disclaim,
any
liability
to
any
party
for
any
loss
or
damage
caused
by
errors
or
omissions
in
this
book,
whether
such
errors
or
omissions
result
from
negligence,
accident
or
any
other
cause.
British
Library
Cataloguing
in
Publication
Data
A
catalogue
record
for
this
book
is
available
from
the
British
Library
ISBN
978-1-907920-71-4
©
Copyright
2018:
Elektor
International
Media
b.v.
Prepress
Production:
D-Vision,
Julian
van
den
Berg
First
published
in
the
United
Kingdom
2018
Printed
in
the
Netherlands
by
Wilco
Elektor
is
part
of
EIM,
the
world's
leading
source
of
essential
technical
information
and
electronics
products
for
pro
engineers,
electronics
designers,
and
the
companies
seeking
to
engage
them.
Each
day,
our
international
team
develops
and
delivers
high-quality
content
-
via
a
variety
of
media
channels
(e.g.,
magazines,
video,
digital
media,
and
social
media)
in
several
languages
-
relating
to
electronics
design
and
DIY
electronics.
www.elektor.com
LEARN
DESIGN
SHARE
Content
Preface
.........................................................................................................................
13
Chapter
1
1.1
Android
mobile
phones
.........................................................................
14
Overview
..........................................................................................................14
1.2
Mobile
Phone
Generations...................................................................................14
1.2.1
First
Generation
(1G)
.......................................................................................14
1.2.2
Second
Generation
(2G)
...................................................................................14
1.2.3
Third
generation
(3G)
.......................................................................................15
1.2.4
Fourth
Generation
(4G)
.....................................................................................15
1.2.5
Fifth
Generation
(5G)
.......................................................................................15
1.3
1.4
Android
Versions
...............................................................................................
15
Smartphones
Using
the
Android
Operating
System
............................................
16
Summary
..........................................................................................................17
1.5
Chapter
2
2.1
Getting
started
.....................................................................................
18
Overview
..........................................................................................................18
2.2
2.3
2.4
Installing
the
Trial
Version
of
B4A
......................................................................18
Installing
the
Standard
Version
of
B4A
...............................................................
23
Getting
Help
.....................................................................................................
24
2.5
Summary
..........................................................................................................24
Chapter
3
3.1
My
first
B4A
program
...........................................................................
25
Overview
..........................................................................................................25
3.2
3.3
3.4
Running
the
B4A
IDE
.........................................................................................
25
Displaying
a
Message
On
the
Android
Mobile
Device
..........................................
26
Summary
..........................................................................................................28
Chapter
4
My
second
B4A
program
.......................................................................
29
4.1
4.2
4.3
Overview
..........................................................................................................29
Running
the
Designer.........................................................................................
29
Summary
..........................................................................................................33
Chapter
5
5.1
5.2
5.3
My
third
B4A
program...........................................................................
34
Overview
..........................................................................................................34
Simple
Calculator
Program
..................................................................................
34
Debugging
........................................................................................................41
Using
the
USB
Connection
................................................................................
45
5.4
5
Zgłoś jeśli naruszono regulamin