Tecnico

Páginas: 313 (78113 palabras) Publicado: 17 de octubre de 2012
Charlie Collins
Michael Galpin
Matthias Käppler
IN
PRACTICE
Includes 91 Techniques
MANNING
Android in Practice
Download from Wow! eBook
Download from Wow! eBook
Android in Practice
CHARLIE COLLINS
MICHAEL D. GALPIN
MATTHIAS KÄPPLER
MANNING
SHELTER ISLAND
Download from Wow! eBook
For online information and ordering of this and other Manning books, please visit
www.manning.com.The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964
Email: orders@manning.com
©2012 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
anyform or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
orall caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books are
printed on paper that is at least 15 percent recycled and processed without the use of elementalchlorine.
Manning Publications Co.Development editor:Cynthia Kane
20 Baldwin Road
Copyeditor: Benjamin Berg
PO Box 261
Typesetter: Gordan Salinovic
Shelter Island, NY 11964
Cover designer: Marija Tudor
ISBN 9781935182924
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – MAL – 16 15 14 13 12 11
Download from Wow! eBook
brief contents
PART 1
BACKGROUND AND FUNDAMENTALS......................................1
1
2
3
PART 2


Introducing Android 3
Android application fundamentals
Managing lifecycle and state 73
40
REAL WORLD RECIPES ......................................................99
4
5
6
7
8
9
10
11
12
PART 3










Getting the pixels perfect 101
Managing background tasks with Services 155
Threads and concurrency 189Storing data locally 224
Sharing data between apps 266
HTTP networking and web services 295
Location is everything 334
Appeal to the senses using multimedia 363
2D and 3D drawing 402
BEYOND STANDARD DEVELOPMENT ...................................441
13
14
15



Testing and instrumentation 443
Build management 489
Developing for Android tablets 540
v
Download from Wow! eBookDownload from Wow! eBook
contents
preface xiii
acknowledgments xv
about this book xviii
about the cover illustration
xxii
PART 1 BACKGROUND AND FUNDAMENTALS ............................1
1
Introducing Android 3
Android in a nutshell
1.2 Hello Android!
1.3 Java, but not Java Java
1.4 Linux, but not Linux Linux
1.5 More capabilities with native libraries
1.6 Tools of the trade
1.7
21.1
5
Summary
9
19
24
29
32
38
Android application fundamentals 40
2.1 The DealDroid application
2.2 Core building blocks
41
43
vii
Download from Wow! eBook
viii
CONTENTS
2.3 Application manifest 44
2.4 Resources 46
2.5 Layout, views, and widgets
2.6 Activities
51
2.7 Adapters
59
2.8 Intents and IntentFilters
2.9 The Application object
2.10
3
Summary
49
63
6971
Managing lifecycle and state 73
3.1 Defining an Android application
74
3.2 Knowing the Activity lifecycle 3.3 Controlling Activity instance state 90
3.4 Getting things done within a task 95
3.5 Summary
79
97
PART 2 REAL WORLD RECIPES ............................................99
4
Getting the pixels perfect 101
4.1 The MyMovies application
4.2 View hierarchies and rendering...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tecnica
  • Tecnico
  • Tecnicas
  • Tecnicas
  • Tecnico
  • Tecnicas
  • Tecnico
  • Tecnico

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS