Android Developer's Cookbook: Building Applications with the Android SDK

Preț: 200,25 lei
Disponibilitate: la comandă
ISBN: 9780321897534
Anul publicării: 2013
Ediția: 2
Pagini: 464

DESCRIERE

The Android™ Developer’s Cookbook, Second Edition, has been extensively updated to reflect all Android 4.2.2 releases. You’ll find all-new chapters on advanced threading and UI development, in-app billing, push messages, and native development, plus new techniques for everything from accessing NFC hardware to using Google Cloud Messaging. Proven modular recipes take your students from the basics all the way to advanced services, helping them to make the most of the newest Android APIs and tools. The authors’ fully-updated code samples are designed to serve as templates for your students' own projects and components. They'll learn best-practice techniques for efficiently solving common problems and for avoiding pitfalls throughout the entire development lifecycle. - See more at: http://www.pearsonhighered.com/educator/product/Android-Developers-Cookbook-The-Building-Applications-with-the-Android-SDK/9780321897534.page#sthash.3sfY9dLn.dpuf

Features

Source of useful, reliable Android code: now completely updated and revised for the newest Android SDKs, technology updates, and best practices
50% new material, plus updates throughout: fast access to real solutions for Jelly Bean and other Android 4.x SDKs and APIs
Targets real-world programming challenges, while also offering a coherent Android development reference: from the basics to high-level services
Demonstrates best practices with real-life “straight from the trenches” code implementations, ready to download and use
Provides code recipes and insights on topics that just aren’t covered elsewhere, including Sensor Simulator, IntentQueue Service pattern variants, and more

- See more at: http://www.pearsonhighered.com/educator/product/Android-Developers-Cookbook-The-Building-Applications-with-the-Android-SDK/9780321897534.page#sthash.3sfY9dLn.dpuf

Table of Contents

Preface xxi

About the Authors xxv

Chapter 1: Overview of Android 1

The Evolution of Android 1

The Dichotomy of Android 2

Devices Running Android 2

Hardware Differences on Android Devices 6

Features of Android 10

Android Development 11

Software Development Kit (SDK) 12

Google Play 16

Managing Reviews and Updates 19

Alternatives to Google Play 20

Chapter 2: Application Basics: Activities and Intents 21

Android Application Overview 21

Activity Lifecycle 31

Multiple Activities 36

Chapter 3: Threads, Services, Receivers, and Alerts 51

Threads 51

Messages between Threads: Handlers 58

Alerts 63

Services 69

Broadcast Receivers 82

App Widgets 85

Chapter 4: Advanced Threading Techniques 89

Loaders 89

AsyncTasks 91

Android Inter-Process Communication 94

Chapter 5: User Interface Layout 109

Resource Directories and General Attributes 109

Views and ViewGroups 112

Text Manipulation 124

Other Widgets: From Buttons to Seek Bars 130

Chapter 6: User Interface Events 145

Event Handlers and Event Listeners 145

Advanced User Interface Libraries 168

Chapter 7: Advanced User Interface Techniques 177

Android Custom View 177

Android Animation 183

Accessibility 189

Fragments 191

Chapter 8: Multimedia Techniques 199

Images 199

Audio 206

Video 217

Chapter 9: Hardware Interface 221

Camera 221

Other Sensors 227

Telephony 231

Bluetooth 236

Near Field Communication (NFC) 243

Universal Serial Bus (USB) 248

Chapter 10: Networking 251

Reacting to the Network State 251

Using SMS 255

Using Web Content 263

Social Networking 275

Chapter 11: Data Storage Methods 287

Shared Preferences 287

SQLite Database 297

Content Provider 306

File Saving and Loading 312

Chapter 12: Location-Based Services 315

Location Basics 315

Using Google Maps 325

Using the Little Fluffy Location Library 337

Chapter 13: In-App Billing 343

Google Play In-App Billing 343

Chapter 14: Push Messages 349

Google Cloud Messaging Setup 3 49

Sending and Receiving Push Messages 351

Receiving Messages 353

Sending Messages 356

Chapter 15: Android Native Development 361

Android Native Components 361

Chapter 16: Debugging 371

Android Test Projects 371

Eclipse Built-In Debug Tools 377

Android SDK Debug Tools 380

Android System Debug Tools 390

Appendix A: Using the OpenIntents Sensor Simulator 395

Setting Up the Sensor Simulator 395

Adding the Sensor Simulator to an Application 398

Appendix B: Using the Compatibility Pack 401

Android Support Packages 401

Adding the Support Library to a Project 408

Appendix C: Using a Continuous Integration System 409

Appendix D: Android OS Releases 411

Cupcake: Android OS 1.5, API Level 3, Released April 30, 2009 411

Donut: Android OS 1.6, API Level 4, Released September 15, 2009 411

Eclair: Android OS 2.0, API Level 5, Released October 26, 2009 412

Froyo: Android OS 2.2, API Level 8, Released May 20, 2010 412

Gingerbread: Android OS 2.3, API Level 9, Released December 6, 2010 412

Honeycomb: Android OS 3.0, API Level 11, Released February 22, 2011 413

Ice Cream Sandwich: Android OS 4.0, API Level 14,Released October 19, 2011 413

Jelly Bean: Android OS 4.1, API Level 16, Released July 9, 2012 414

Index 417
- See more at: http://www.pearsonhighered.com/educator/product/Android-Developers-Cookbook-The-Building-Applications-with-the-Android-SDK/9780321897534.page#sthash.3sfY9dLn.dpuf

About the Author(s)

Ronan “Zero” Schwarz, cofounder of OpenIntents, has built Android apps since 2007 and helped create SplashPlay and Droidspray–top Google Android Developer Challenge finalists.

Phil Dutson is lead eCommerce developer for ICON Health and Fitness. He wrote Sams Teach Yourself jQuery Mobile in 24 Hours.

James Steele, vice president of engineering at Sensor Platforms, focuses on helping app developers leverage user motion and context information more easily.

Nelson To markets multiple apps at Google Play. He has worked on enterprise Android apps for Think Computer, Inc., AOL (AIM), Stanford University, and Logitech.
- See more at: http://www.pearsonhighered.com/educator/product/Android-Developers-Cookbook-The-Building-Applications-with-the-Android-SDK/9780321897534.page#sthash.3sfY9dLn.dpuf

Carte de bucateAndroid ™ Developer , a doua ediție , a fost pe larg actualizat pentru a reflecta toate Android 4.2.2 de presă . Veți găsi toate - noi capitole la filetare avansate și UI dezvoltare , in - app de facturare , mesaje de notificare , și de dezvoltare nativ , plus noi tehnici pentru orice, de la accesarea hardware NFC pentru utilizarea de mesagerie Google Cloud . Retete modulare dovedit ia elevilor de la elementele de bază tot drumul la servicii avansate , ajutându-le pentru a profita din plin de cele mai noi Android API-uri și instrumente . Autorilor mostre de cod complet actualizate sunt concepute pentru a servi ca modele pentru elevi " proiecte și componente proprii . Ei vor invata tehnici de cele mai bune practici pentru soluționarea eficientă a problemelor comune și pentru a evita capcane de-a lungul întregului ciclu de viață de dezvoltare. - Vezi mai multe la :

caracteristici

Sursa de util , cod Android încredere : acum complet revizuită și îmbunătățită pentru cele mai noi SDK Android , actualizări de tehnologie , și cele mai bune practici
50 % material nou , plus actualizări de-a lungul : acces rapid la soluții reale pentru Jelly Bean și alte SDK Android 4.x și API-uri
Obiective provocări legate de programarea lumea reală , oferind în același timp o trimitere coerent Android de dezvoltare : de la elementele de bază pentru serviciile de nivel înalt
Demonstrează cele mai bune practici cu viața reală " direct din tranșee " implementări de cod , gata pentru a descărca și de a folosi
Oferă rețete de cod și perspective pe teme care nu sunt acoperite în altă parte , inclusiv Simulator senzor , IntentQueue variante de model de servicii , și mai mult

- Vezi mai multe la :

Cuprins

Prefață XXI

Despre autori XXV

Capitolul 1 : Privire de ansamblu asupra Android 1

Evoluția Android 1

Dihotomia Android 2

Dispozitivele care rulează Android 2

Diferențele hardware-ul pe dispozitive Android 6

Caracteristici de Android 10

Android de Dezvoltare 11

Software Development Kit ( SDK ) 12

Google Play 16

Review-uri de Management și actualizări 19

Alternative la Google Play 20

Capitolul 2 : Noțiuni de bază de aplicare : Activități și intențiile 21

Android de aplicare generală 21

Activitatea ciclului de viață 31

Activități multiple 36

Capitolul 3 : fire , Servicii , Receivere , și alerte 51

fire 51

Mesaje între Subiecte : Incarcator 58

Alerte 63

servicii 69

Receptoare de radiodifuziune 82

App Widgets 85

Capitolul 4 : Tehnici avansate de filetat 89

încărcătoare 89

AsyncTasks 91

Android Inter - Process Communication 94

Capitolul 5 : User Interface Layout 109

Directoare resurse și Atributele generale 109

Vizualizări și ViewGroups 112

Manipularea textului 124

Alte widget-uri : De la Butoane să caute Baruri 130

Capitolul 6 : User Interface Evenimente 145

Stivuitoare eveniment și ascultătorilor eveniment 145

Avansate Biblioteci User Interface 168

Capitolul 7 : Tehnici avansate de interfață cu utilizatorul 177

Android personalizat Vezi 177

Android Animație 183

Accesibilitate 189

fragmente 191

Capitolul 8 : tehnici multimedia 199

imagini 199

audio 206

Video 217

Capitolul 9 : interfață hardware 221

camera 221

Alte senzori 227

telefonie 231

Bluetooth 236

Near Field Communication ( NFC ) 243

Universal Serial Bus ( USB ) 248

Capitolul 10 : Rețele 251

Reacționând la rețeaua de stat 251

Folosind SMS 255

Folosirea Web Content 263

Social Networking 275

Capitolul 11 : Metode de date de stocare 287

Preferințe comune 287

SQLite 297 Baza de date

Conținutul furnizor 306

Fișier Salvarea și încărcarea 312

Capitolul 12 : Location - Based Services 315

Locație de bază 315

Folosind Google Maps 325

Folosind Little Fluffy Locație Bibliotecă 337

Capitolul 13 : In - App facturare 343

Google Play In - App facturare 343

Capitolul 14 : mesaje de notificare 349

Google Cloud Mesaje de instalare 3 49

Trimiterea și primirea mesajelor Push 351

Primirea mesajelor 353

Trimiterea de mesaje 356

Capitolul 15 : Android Dezvoltare Native 361

Android Componente Native 361

Capitolul 16 : Debugging 371

Android testa proiectele de 371

Eclipse Built - in instrumente de depanare 377

Android SDK Tools Debug 380

Android Sistemul de instrumentele de depanare 390

Anexa A : Utilizarea OpenIntents senzor Simulator 395

Configurarea senzorului Simulator 395

Adăugarea Simulator senzorului la o cerere 398

Anexa B : Utilizarea Compatibilitate Pack 401

Suport pentru Android Pachete 401

Adăugarea Biblioteca de sprijin pentru un proiect 408

Anexa C : Folosind un sistem de integrare continuă 409

Anexa D : sistemul de operare Android de presă 411

Cupcake : Android OS 1.5 , API de nivel 3 , Lansat 30 aprilie 2009 411

Donut : Android OS 1.6 , API de nivel 4 , Lansat 15 septembrie 2009 411

Eclair : sistem de operare Android 2.0 , API de nivel 5 , Lansat 26 octombrie 2009 412

Froyo : sistem de operare Android 2.2 , API Nivelul 8 , Lansat 20 mai 2010 412

Turtă dulce : Android OS 2.3 , API de nivel 9 , Lansat 06 decembrie 2010 412

Fagure de miere : Android OS 3.0 , API de nivel 11 , Released 22 februarie 2011 413

Ice Cream Sandwich : sistem de operare Android 4.0 , API de nivel 14 , Lansat 19 octombrie 2011 413

Jelly Bean : sistem de operare Android 4.1 , API de nivel 16 , Lansat 09 iulie 2012 414

index 417
- Vezi mai multe la :

Despre autor ( i )

Ronan " Zero " Schwarz , co-fondator al OpenIntents , a construit aplicații Android din 2007 și a ajutat la crearea SplashPlay și Droidspray - top Google Android Developer Challenge finaliști .

Phil Dutson este dezvoltator eCommerce plumb pentru ICON Sănătate și fitness . El a scris Sams Teach Yourself jQuery Mobile în 24 de ore.

James Steele , vice- presedinte de inginerie la platforme senzor , se concentrează pe sprijinirea App dezvoltatori de pârghie mișcare utilizator și informații contextul mai ușor .

Nelson a piețelor de mai multe aplicații de la Google Play . El a lucrat la întreprindere aplicații Android pentru Gândiți-vă Computer , Inc , AOL ( AIM ) , Universitatea Stanford , și Logitech .

RECENZII

Spune-ne opinia ta despre acest produs! scrie o recenzie
Created in 0.0392 sec