The busy coder's guide to Android development:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
[s.l.]
CommonsWare
2009
|
Ausgabe: | Version 2.0 |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XIX, 444 S. Ill., graph. Darst. |
ISBN: | 9780981678009 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV035667254 | ||
003 | DE-604 | ||
005 | 20090817 | ||
007 | t | ||
008 | 090807s2009 ad|| |||| 00||| eng d | ||
020 | |a 9780981678009 |9 978-0-9816780-0-9 | ||
035 | |a (OCoLC)318951098 | ||
035 | |a (DE-599)GBV58310939X | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-473 | ||
050 | 0 | |a QA76.6 | |
084 | |a ST 240 |0 (DE-625)143625: |2 rvk | ||
100 | 1 | |a Murphy, Mark L. |e Verfasser |4 aut | |
245 | 1 | 0 | |a The busy coder's guide to Android development |c by Mark L. Murphy |
250 | |a Version 2.0 | ||
264 | 1 | |a [s.l.] |b CommonsWare |c 2009 | |
300 | |a XIX, 444 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 7 | |a Informatique mobile |2 ram | |
650 | 7 | |a Logiciels libres - Guides, manuels, etc |2 ram | |
650 | 7 | |a Programmation - Guides, manuels, etc |2 ram | |
650 | 4 | |a Computer programming |v Handbooks, manuals, etc | |
650 | 4 | |a Computer software |v Handbooks, manuals, etc | |
650 | 4 | |a Open source software |v Handbooks, manuals, etc | |
650 | 0 | 7 | |a Mobilfunk |0 (DE-588)4170280-3 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Android |g Systemplattform |0 (DE-588)7635475-1 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Mobilfunk |0 (DE-588)4170280-3 |D s |
689 | 0 | 1 | |a Android |g Systemplattform |0 (DE-588)7635475-1 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Bamberg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017721582&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-017721582 |
Datensatz im Suchindex
_version_ | 1804139360918962176 |
---|---|
adam_text | Table
of Contents
Preface
...................................................................................................xv
Welcome to the Book!
................................................................................xv
Prerequisites
................................................................................................xv
Warescription............................................................................................xvi
Book Bug Bounty
......................................................................................xvii
Source Code License
...............................................................................xviii
Creative Commons and the
Four-to-Free (42F)
Guarantee
.................xviii
Acknowledgments
.....................................................................................xix
The Big Picture
.........................................................................................1
What Androids Are Made Of.
......................................................................3
Activities
.................................................................................................3
Content Providers
..................................................................................4
Intents
.....................................................................................................4
Services
...................................................................................................4
Stuff At Your Disposal
..................................................................................5
Storage
.....................................................................................................5
Network
...................................................................................................5
Multimedia
.............................................................................................5
GPS
..........................................................................................................5
iii
Phone Services
........................................................................................6
Project Structure
.....................................................................................7
Root Contents
...............................................................................................7
The Sweat Off Your Brow
............................................................................8
And Now, The Rest of the Story
..................................................................8
What You Get Out Of It
..............................................................................9
Inside the Manifest
................................................................................
π
In The Beginning, There Was the Root, And It Was Good
......................
n
Permissions, Instrumentations, and Applications (Oh, My!)
..................12
Your Application Does Something, Right?
................................................13
Creating a Skeleton Application
...........................................................17
Begin at the Beginning
................................................................................17
The Activity
..................................................................................................18
Dissecting the Activity
................................................................................19
Building and Running the Activity
............................................................21
Using XML-Based Layouts
.....................................................................25
What Is an XML-Based Layout?
................................................................25
Why Use XML-Based Layouts?
.................................................................26
OK, So What Does It Look Like?
...............................................................27
What s With the @ Signs?
.........................................................................28
And We Attach These to the Java...How?
................................................28
The Rest of the Story
..................................................................................29
Employing Basic Widgets
......................................................................33
Assigning Labels
..........................................................................................33
Button, Button, Who s Got the Button?
...................................................34
Fleeting Images
..........................................................................................,35
Fields of Green. Or Other Colors
..............................................................36
IV
Just Another Box to Check
.........................................................................38
Turn the Radio Up
......................................................................................41
It s Quite a View
..........................................................................................43
Useful Properties
..................................................................................43
Useful Methods
....................................................................................44
Working with Containers
......................................................................45
Thinking Linearly
.......................................................................................46
Concepts and Properties
.....................................................................46
Example
................................................................................................49
All Things Are Relative
...............................................................................54
Concepts and Properties
......................................................................54
Example
.................................................................................................57
Tabula Rasa
.................................................................................................60
Concepts and Properties
.....................................................................60
Example
.................................................................................................63
Scrollwork
...................................................................................................64
Using Selection Widgets
.......................................................................69
Adapting to the Circumstances
.................................................................69
Using ArrayAdapter
.............................................................................70
Other Key Adapters
..............................................................................71
Lists of Naughty and Nice
..........................................................................72
Spin Control
................................................................................................74
Grid Your Lions (Or Something Like That...)
..........................................78
Fields: Now With
35%
Less Typing!
..........................................................82
Galleries, Give Or Take The Art
................................................................86
Getting Fancy With Lists
.......................................................................89
Getting To First Base
..................................................................................89
A Dynamic Presentation
............................................................................92
A Sidebar About Inflation
...................................................................94
And Now, Back To Our Story
.............................................................94
Better. Stronger. Faster
..............................................................................95
Using convertView
...............................................................................96
Using the Holder Pattern
....................................................................98
Making a List
..............................................................................................101
...And Checking It Twice
..........................................................................107
Employing Fancy Widgets and Containers
..........................................115
Pick and Choose
.........................................................................................115
Time Keeps Flowing Like a River
.............................................................120
Making Progress
.........................................................................................121
Putting It On My Tab
................................................................................122
The Pieces
............................................................................................123
The Idiosyncrasies
...............................................................................123
Wiring It Together
..............................................................................125
Adding Them Up
................................................................................128
Intents and Views
................................................................................131
Flipping Them Off.
.....................................................................................131
Other Containers of Note
.........................................................................137
Applying Menus
....................................................................................139
Flavors of Menu
.........................................................................................139
Menus of Options
.....................................................................................140
Menus in Context
......................................................................................142
Taking a Peek
.............................................................................................143
Yet More Inflation
.....................................................................................149
Menu XML Structure
..........................................................................149
VI
Menu Options and XML
.....................................................................151
Inflating the Menu
..............................................................................152
Fonts
......................................................................................................155
Love The One You re With
.......................................................................155
Embedding the WebKit Browser
.........................................................161
A Browser, Writ Small
...............................................................................161
Loading It Up
.............................................................................................164
Navigating the Waters
..............................................................................165
Entertaining the Client
.............................................................................166
Settings, Preferences, and Options (Oh, My!)
........................................168
Showing Pop-Up Messages
...................................................................171
Raising Toasts
.............................................................................................171
Alert! Alert!
................................................................................................172
Checking Them Out
..................................................................................173
Dealing with Threads
...........................................................................177
Getting Through the Handlers
.................................................................177
Messages
..............................................................................................178
Runnables
.............................................................................................181
Running In Place
........................................................................................181
Where, Oh Where Has My UI Thread Gone?
.........................................182
And Now, The Caveats
..............................................................................182
Handling Activity Lifecycle Events
......................................................185
Schroedinger s Activity
.............................................................................185
Life, Death, and Your Activity
..................................................................186
onCreateO and onDestroyO
..............................................................186
onStart(), onRestartQ, and onStopQ
.................................................187
onPauseQ and onResumeQ
................................................................187
VII
Launching Activities and Sub-Activities
.............................................279
Peers and Subs
..........................................................................................280
Start Em Up
..............................................................................................280
Make an Intent
....................................................................................281
Make the Call
......................................................................................281
Tabbed Browsing, Sort Of.
.......................................................................286
Finding Available Actions via Introspection
......................................291
Pick Em
.....................................................................................................292
Would You Like to See the Menu?
.........................................................296
Asking Around
..........................................................................................298
Handling Rotation
..............................................................................299
A Philosophy of Destruction
...................................................................299
It s All The Same, Just Different
..............................................................300
Now With More Savings!
.........................................................................304
DIY
Rotation
.............................................................................................306
Forcing the Issue
......................................................................................309
Making Sense of it All
................................................................................311
Using a Content Provider
.....................................................................315
Pieces of Me
...............................................................................................315
Getting a Handle
.......................................................................................316
Makin
Queries
...........................................................................................317
Adapting to the Circumstances
................................................................319
Doing It By Hand
......................................................................................320
Position
................................................................................................321
Getting Properties
...............................................................................321
Give and Take
............................................................................................321
Beware of the BLOB!
.................................................................................323
Building a
Content Provider
...............................................................325
First, Some Dissection
..............................................................................325
Next, Some Typing
...................................................................................326
Step
#1:
Create a Provider Class
...............................................................327
onCreateO
...........................................................................................327
queryO
.................................................................................................328
insertO
.................................................................................................33°
updateO
................................................................................................331
deleteO
................................................................................................332
getTypeO
.............................................................................................333
Step
#2:
Supply
a Uri
................................................................................334
Step
#3:
Declare the Properties
................................................................334
Step
#4:
Update the Manifest
...................................................................335
Notify-On-Change Support
.....................................................................336
Requesting and Requiring Permissions
.............................................339
Mother, May I?
..........................................................................................340
Halt! Who Goes There?
.............................................................................341
Enforcing Permissions via the Manifest
...........................................342
Enforcing Permissions Elsewhere
.....................................................343
May I See Your Documents?
....................................................................343
Creating a Service
................................................................................345
Service with Class
.....................................................................................346
When IPC Attacks!
...................................................................................347
Write the AIDL
...................................................................................348
Implement the Interface
....................................................................349
Manifest Destiny
.......................................................................................350
Lobbing One Over the Fence
...................................................................351
XI
Where s the Remote? And the Rest of the Code?
..................................352
Invoking a Service
................................................................................353
Bound for Success
.....................................................................................354
Request for Service
...................................................................................356
Prometheus Unbound
..............................................................................356
Manual Transmission
...............................................................................356
Catching the Lob
.......................................................................................357
Alerting Users Via Notifications
..........................................................361
Types of Pestering
.....................................................................................361
Hardware Notifications
.....................................................................362
Icons
....................................................................................................362
Seeing Pestering in Action
.......................................................................363
Accessing Location-Based Services
.....................................................369
Location Providers: They Know Where You re Hiding
.........................370
Finding Yourself.
.......................................................................................370
On the Move
..............................................................................................372
Are We There Yet? Are We There Yet? Are We There Yet?
..................373
Testing...Testing
........................................................................................374
Mapping with Map View and MapActivity
...........................................377
Terms, Not of Endearment
......................................................................377
The Bare Bones
.........................................................................................378
Exercising Your Control
...........................................................................380
Zoom
...................................................................................................380
Center
..................................................................................................382
Rugged Terrain
.........................................................................................382
Layers Upon Layers
...................................................................................383
Overlay Classes
...................................................................................383
XII
Drawing the ItemizedOverlay
...........................................................384
Handling Screen Taps
........................................................................386
My, Myself, and MyLocationOverlay
......................................................386
The Key To It All
.......................................................................................387
Handling Telephone Calls
...................................................................391
Report To The Manager
...........................................................................392
You Make the Call!
...................................................................................392
Searching with SearchManager
...........................................................397
Hunting Season
.........................................................................................397
Search Yourself.
........................................................................................399
Craft the Search Activity
...................................................................400
Update the Manifest
..........................................................................404
Searching for Meaning In Randomness
..................................................405
Development Tools
.............................................................................409
Hierarchical Management
.......................................................................409
Delightful Dalvik Debugging Detailed, Demoed
...................................416
Logging
................................................................................................418
File Push and Pull
...............................................................................419
Screenshots.........................................................................................420
Location Updates
................................................................................421
Placing Calls and Messages
...............................................................422
Put It On My Card
....................................................................................426
Creating a Card Image
.......................................................................426
Inserting the Card
...........................................................................427
Where Do We Go From Here?
.............................................................429
Questions. Sometimes, With Answers
...................................................429
Heading to the Source
..............................................................................430
xiii
Getting Your News Fix
..............................................................................431
xiv
|
any_adam_object | 1 |
author | Murphy, Mark L. |
author_facet | Murphy, Mark L. |
author_role | aut |
author_sort | Murphy, Mark L. |
author_variant | m l m ml mlm |
building | Verbundindex |
bvnumber | BV035667254 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.6 |
callnumber-search | QA76.6 |
callnumber-sort | QA 276.6 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 240 |
ctrlnum | (OCoLC)318951098 (DE-599)GBV58310939X |
discipline | Informatik |
edition | Version 2.0 |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01691nam a2200433 c 4500</leader><controlfield tag="001">BV035667254</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20090817 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">090807s2009 ad|| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780981678009</subfield><subfield code="9">978-0-9816780-0-9</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)318951098</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)GBV58310939X</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-473</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.6</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 240</subfield><subfield code="0">(DE-625)143625:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Murphy, Mark L.</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">The busy coder's guide to Android development</subfield><subfield code="c">by Mark L. Murphy</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">Version 2.0</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">[s.l.]</subfield><subfield code="b">CommonsWare</subfield><subfield code="c">2009</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XIX, 444 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Informatique mobile</subfield><subfield code="2">ram</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Logiciels libres - Guides, manuels, etc</subfield><subfield code="2">ram</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Programmation - Guides, manuels, etc</subfield><subfield code="2">ram</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer programming</subfield><subfield code="v">Handbooks, manuals, etc</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer software</subfield><subfield code="v">Handbooks, manuals, etc</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Open source software</subfield><subfield code="v">Handbooks, manuals, etc</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Mobilfunk</subfield><subfield code="0">(DE-588)4170280-3</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Android</subfield><subfield code="g">Systemplattform</subfield><subfield code="0">(DE-588)7635475-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Mobilfunk</subfield><subfield code="0">(DE-588)4170280-3</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Android</subfield><subfield code="g">Systemplattform</subfield><subfield code="0">(DE-588)7635475-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bamberg</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017721582&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-017721582</subfield></datafield></record></collection> |
id | DE-604.BV035667254 |
illustrated | Illustrated |
indexdate | 2024-07-09T21:42:51Z |
institution | BVB |
isbn | 9780981678009 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-017721582 |
oclc_num | 318951098 |
open_access_boolean | |
owner | DE-473 DE-BY-UBG |
owner_facet | DE-473 DE-BY-UBG |
physical | XIX, 444 S. Ill., graph. Darst. |
publishDate | 2009 |
publishDateSearch | 2009 |
publishDateSort | 2009 |
publisher | CommonsWare |
record_format | marc |
spelling | Murphy, Mark L. Verfasser aut The busy coder's guide to Android development by Mark L. Murphy Version 2.0 [s.l.] CommonsWare 2009 XIX, 444 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier Informatique mobile ram Logiciels libres - Guides, manuels, etc ram Programmation - Guides, manuels, etc ram Computer programming Handbooks, manuals, etc Computer software Handbooks, manuals, etc Open source software Handbooks, manuals, etc Mobilfunk (DE-588)4170280-3 gnd rswk-swf Android Systemplattform (DE-588)7635475-1 gnd rswk-swf Mobilfunk (DE-588)4170280-3 s Android Systemplattform (DE-588)7635475-1 s DE-604 Digitalisierung UB Bamberg application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017721582&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Murphy, Mark L. The busy coder's guide to Android development Informatique mobile ram Logiciels libres - Guides, manuels, etc ram Programmation - Guides, manuels, etc ram Computer programming Handbooks, manuals, etc Computer software Handbooks, manuals, etc Open source software Handbooks, manuals, etc Mobilfunk (DE-588)4170280-3 gnd Android Systemplattform (DE-588)7635475-1 gnd |
subject_GND | (DE-588)4170280-3 (DE-588)7635475-1 |
title | The busy coder's guide to Android development |
title_auth | The busy coder's guide to Android development |
title_exact_search | The busy coder's guide to Android development |
title_full | The busy coder's guide to Android development by Mark L. Murphy |
title_fullStr | The busy coder's guide to Android development by Mark L. Murphy |
title_full_unstemmed | The busy coder's guide to Android development by Mark L. Murphy |
title_short | The busy coder's guide to Android development |
title_sort | the busy coder s guide to android development |
topic | Informatique mobile ram Logiciels libres - Guides, manuels, etc ram Programmation - Guides, manuels, etc ram Computer programming Handbooks, manuals, etc Computer software Handbooks, manuals, etc Open source software Handbooks, manuals, etc Mobilfunk (DE-588)4170280-3 gnd Android Systemplattform (DE-588)7635475-1 gnd |
topic_facet | Informatique mobile Logiciels libres - Guides, manuels, etc Programmation - Guides, manuels, etc Computer programming Handbooks, manuals, etc Computer software Handbooks, manuals, etc Open source software Handbooks, manuals, etc Mobilfunk Android Systemplattform |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017721582&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT murphymarkl thebusycodersguidetoandroiddevelopment |