Home Page Icon
Home Page
Table of Contents for
Android App Development All-in-One For Dummies
Close
Android App Development All-in-One For Dummies
by Barry A. Burd
Android Application Development All-in-One For Dummies, 2nd Edition
Cover
Cover
Introduction
How to Use This Book
Conventions Used in This Book
What You Don’t Have to Read
Foolish Assumptions
How This Book Is Organized
More on the Web!
Icons Used in This Book
Beyond the Book
Where to Go from Here
Book I: Getting Started with Android Application Development
Chapter 1: All about Android
The Consumer Perspective
The Developer Perspective
The Business Perspective
Chapter 2: Installing the Software Tools
Installing Oracle’s Java Development Kit
Adding Apple’s Java to the Stew
The Many Faces of Java (for Inquiring Readers Only)
Setting Up the Software
Launching the Android Studio IDE
Fattening Up the Android SDK
Chapter 3: Creating an Android App
Creating Your First App
Running Your App
You Can Download All the Code
What If …
Testing Apps on a Real Device
Chapter 4: Examining a Basic Android App
A Project’s Files
What Did I Agree To?
Chapter 5: Conjuring and Embellishing an Android App
Dragging, Dropping, and Otherwise Tweaking an App
A Bit of Debugging
Chapter 6: Improving Your App
Improving the Layout
Starting Another Activity
Localizing Your App
Responding to Check Box Events
Displaying Images
Sending in Your Order
Book II: Android Background Material
Chapter 1: Using Android Studio
Don’t Read This Chapter
The Big Picture
The Things You Can Do
Chapter 2: It’s Java!
From Development to Execution with Java
Grasping Java Code
Chapter 3: What Java Does (and When)
Making Decisions (Java if Statements)
Repeating Instructions Over and Over Again
Jumping Away from Trouble
Chapter 4: Object-Oriented Programming in Java
Static Fields and Methods
Interfaces and Callbacks
Classes That Must (and Must Not) Be Extended
Inner Classes
Gathering Your Files
Chapter 5: A <brief> Look at XML
XML Isn’t Ordinary Text
What’s in a Namespace?
Book III: The Building Blocks
Chapter 1: Android Activities
All about Activities
The Activity Lifecycle
Getting Results Back from an Activity
Applications Don’t Feel Left Out
Chapter 2: Intents and Intent Filters
How to Make a Match
Practice, Practice, Practice
Activities and Stacks
Chapter 3: Services
A Very Simple Service
Running a Service at Boot Time
Starting and Binding
Talking about the Weather
Getting Real Weather Data
Talking to a Service as if You’re Right Next Door
Chapter 4: Broadcast Receivers
Receivers 101
Beyond the Fundamentals
Standard Broadcasts
Chapter 5: Content Providers
Databases: From the Stone Age to the Present Day
Working with a Database
Creating and Using a Content Provider
Book IV: Programming Cool Phone Features
Chapter 1: Laying Out Your Stuff
Android Layouts
Linear Layout
Attributes (A Detour)
Using Configuration Qualifiers (Another Detour)
Relative Layout
Table Layout
Grid Layout
Frame Layout
Using a ScrollView
Defining a Layout in Java Code
Chapter 2: Menus, Lists, and Notifications
All about Menus
Creating an Options Menu
Creating a Context Menu
More Stuff about Lists
Creating a Pop-Up Menu
Notifying the User
Chapter 3: An Android Potpourri
Making Phone Calls
Sending a Text Message
Working with Device Sensors
Drawing, Dragging, and Zooming
On the Importance of Waiting Patiently
Chapter 4: An Android Social Media App
The Twitter App’s Files
How to Talk to the Twitter Server
The Application’s Main Activity
Chapter 5: Hungry Burds: A Simple Android Game
Introducing the Hungry Burds Game
The Project’s Files
The Main Activity
Chapter 6: Going Native
The Native Development Kit
Creating an Application
Book V: Apps for Tablets, Watches, and TV Sets
Chapter 1: Apps for Tablets
What Fragments Can Do for You
Getting the Best of Both Worlds
Chapter 2: Developing for Android Wear
Setting Up Your Testing Environment
Wearable Apps: What’s the Big Deal?
Case Study: A Watch Face
Chapter 3: Developing for Android TV
Getting Started
Running the Skeletal App
Creating a TV App
Book VI: The Job Isn’t Done Until …
Chapter 1: Publishing Your App to the Google Play Store
Creating a Google Play Developer Account
Preparing Your Code
Preparing Graphic Assets for the Play Store
Creating a Publishable APK File
More Testing
Publishing Your App
Publishing Elsewhere
Chapter 2: Monetizing and Marketing Your App
Choosing a Revenue Model
Marketing Your Application
About the Author
Cheat Sheet
Advertisement Page
Connect with Dummies
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Introduction
Android App Development All-in-One For Dummies
Visit
www.dummies.com/cheatsheet/androidappdevelopmentaio
to view this book's cheat sheet.
Table of Contents
Cover
Introduction
How to Use This Book
Conventions Used in This Book
What You Don’t Have to Read
Foolish Assumptions
How This Book Is Organized
More on the Web!
Icons Used in This Book
Beyond the Book
Where to Go from Here
Book I: Getting Started with Android Application Development
Chapter 1: All about Android
The Consumer Perspective
The Developer Perspective
The Business Perspective
Chapter 2: Installing the Software Tools
Installing Oracle’s Java Development Kit
Adding Apple’s Java to the Stew
The Many Faces of Java (for Inquiring Readers Only)
Setting Up the Software
Launching the Android Studio IDE
Fattening Up the Android SDK
Chapter 3: Creating an Android App
Creating Your First App
Running Your App
You Can Download All the Code
What If …
Testing Apps on a Real Device
Chapter 4: Examining a Basic Android App
A Project’s Files
What Did I Agree To?
Chapter 5: Conjuring and Embellishing an Android App
Dragging, Dropping, and Otherwise Tweaking an App
A Bit of Debugging
Chapter 6: Improving Your App
Improving the Layout
Starting Another Activity
Localizing Your App
Responding to Check Box Events
Displaying Images
Sending in Your Order
Book II: Android Background Material
Chapter 1: Using Android Studio
Don’t Read This Chapter
The Big Picture
The Things You Can Do
Chapter 2: It’s Java!
From Development to Execution with Java
Grasping Java Code
Chapter 3: What Java Does (and When)
Making Decisions (Java if Statements)
Repeating Instructions Over and Over Again
Jumping Away from Trouble
Chapter 4: Object-Oriented Programming in Java
Static Fields and Methods
Interfaces and Callbacks
Classes That Must (and Must Not) Be Extended
Inner Classes
Gathering Your Files
Chapter 5: A <brief> Look at XML
XML Isn’t Ordinary Text
What’s in a Namespace?
Book III: The Building Blocks
Chapter 1: Android Activities
All about Activities
The Activity Lifecycle
Getting Results Back from an Activity
Applications Don’t Feel Left Out
Chapter 2: Intents and Intent Filters
How to Make a Match
Practice, Practice, Practice
Activities and Stacks
Chapter 3: Services
A Very Simple Service
Running a Service at Boot Time
Starting and Binding
Talking about the Weather
Getting Real Weather Data
Talking to a Service as if You’re Right Next Door
Chapter 4: Broadcast Receivers
Receivers 101
Beyond the Fundamentals
Standard Broadcasts
Chapter 5: Content Providers
Databases: From the Stone Age to the Present Day
Working with a Database
Creating and Using a Content Provider
Book IV: Programming Cool Phone Features
Chapter 1: Laying Out Your Stuff
Android Layouts
Linear Layout
Attributes (A Detour)
Using Configuration Qualifiers (Another Detour)
Relative Layout
Table Layout
Grid Layout
Frame Layout
Using a ScrollView
Defining a Layout in Java Code
Chapter 2: Menus, Lists, and Notifications
All about Menus
Creating an Options Menu
Creating a Context Menu
More Stuff about Lists
Creating a Pop-Up Menu
Notifying the User
Chapter 3: An Android Potpourri
Making Phone Calls
Sending a Text Message
Working with Device Sensors
Drawing, Dragging, and Zooming
On the Importance of Waiting Patiently
Chapter 4: An Android Social Media App
The Twitter App’s Files
How to Talk to the Twitter Server
The Application’s Main Activity
Chapter 5: Hungry Burds: A Simple Android Game
Introducing the Hungry Burds Game
The Project’s Files
The Main Activity
Chapter 6: Going Native
The Native Development Kit
Creating an Application
Book V: Apps for Tablets, Watches, and TV Sets
Chapter 1: Apps for Tablets
What Fragments Can Do for You
Getting the Best of Both Worlds
Chapter 2: Developing for Android Wear
Setting Up Your Testing Environment
Wearable Apps: What’s the Big Deal?
Case Study: A Watch Face
Chapter 3: Developing for Android TV
Getting Started
Running the Skeletal App
Creating a TV App
Book VI: The Job Isn’t Done Until …
Chapter 1: Publishing Your App to the Google Play Store
Creating a Google Play Developer Account
Preparing Your Code
Preparing Graphic Assets for the Play Store
Creating a Publishable APK File
More Testing
Publishing Your App
Publishing Elsewhere
Chapter 2: Monetizing and Marketing Your App
Choosing a Revenue Model
Marketing Your Application
About the Author
Cheat Sheet
Advertisement Page
Connect with Dummies
End User License Agreement
Guide
Cover
Table of Contents
Begin Reading
Pages
iii
iv
vii
viii
ix
x
xi
xii
xiii
xiv
xv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
309
310
311
312
313
316
317
318
319
320
321
322
324
325
326
327
328
329
330
331
332
333
334
335
336
338
339
340
344
345
346
347
348
349
351
352
353
354
356
360
361
362
363
364
365
367
369
370
372
373
374
376
377
378
379
380
383
384
385
386
387
389
390
392
393
396
397
399
400
401
403
405
406
407
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
519
520
521
522
523
525
526
527
528
529
531
532
533
534
535
537
538
539
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
743
744
745
746
747
748
749
750
751
752
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset