Jackson | Android Apps for Absolute Beginners | E-Book | sack.de
E-Book

E-Book, Englisch, 339 Seiten, eBook

Jackson Android Apps for Absolute Beginners


1. Auflage 2011
ISBN: 978-1-4302-3447-0
Verlag: APRESS
Format: PDF
Kopierschutz: 1 - PDF Watermark

E-Book, Englisch, 339 Seiten, eBook

ISBN: 978-1-4302-3447-0
Verlag: APRESS
Format: PDF
Kopierschutz: 1 - PDF Watermark



Anybody can start building simple apps for the Android platform, and this book will show you how! Android Apps for Absolute Beginners takes you through the process of getting your first Android applications up and running using plain English and practical examples. It cuts through the fog of jargon and mystery that surrounds Android application development, and gives you simple, step-by-step instructions to get you started.  Teaches Android application development in language anyone can understand, giving you the best possible start in Android development Provides simple, step-by-step examples that make learning easy, allowing you to pick up the concepts without fuss Offers clear code descriptions and layout so that you can get your apps running as soon as possible
Jackson Android Apps for Absolute Beginners jetzt bestellen!

Zielgruppe


Popular/general


Autoren/Hrsg.


Weitere Infos & Material


1;Title Page;2
2;Copyright Page;3
3;Contents at a Glance;5
4;Table of Contents;6
5;About the Author;11
6;About the Technical Reviewer;12
7;Acknowledgments;13
8;Introduction;14
8.1;The Target: The Programming Neophyte;14
8.2;The Weapon: Android, the Innovative Mobile Code Environment;14
8.3;How This Book Is Organized;15
8.4;The Formula for Success;15
8.5;Required Software, Materials, and Equipment;16
8.5.1;Operating System and IDE;16
8.5.2;Software Development Kits;17
8.5.3;Dual Monitors;17
9;Chapter 1: Preliminary Information: Before We Get Started;18
9.1;Some History: What Is Android?;19
9.2;Advantage Android: How Can Android Benefit Me?;20
9.3;The Scope of This Book;21
9.3.1;What's Covered;21
9.3.2;What's Not Covered;22
9.4;Preparing for Liftoff: SDK Tools to Download;22
9.4.1;Java;23
9.4.2;Eclipse;24
9.4.3;Android SDK;25
9.5;Summary;25
10;Chapter 2: What's Next? Our Road Ahead;27
10.1;Your Android Development IDE;27
10.2;Java, XML, and How Android Works;29
10.3;The Android Application Framework;30
10.4;Screen Layout Design;30
10.5;User Interface Design;31
10.6;Graphics and Animation Design;31
10.7;Interactivity;32
10.8;Content Providers;32
10.9;Intents and Intent Filters;33
10.10;The Future of Android;33
10.11;Summary;34
11;Chapter 3: SeHing Up Your Android Development Environment;35
11.1;Installing Java, Eclipse, and Android;35
11.1.1;Java SE and JRE: Your Foundation for Application Development..;36
11.1.2;Eclipse IDE: The Development Environment;37
11.1.3;Android SDK: The Android Tool Kit for Eclipse;41
11.1.4;Android Development Tool: Android Tools for Eclipse;42
11.1.5;The Android Environment Within Eclipse;46
11.2;Updating the Android SDK;47
11.3;Setting Up AVDs and Smartphone Connections;49
11.3.1;AVDs: Smartphone Emulators;49
11.3.2;USB Smartphone Drivers: External Devices;51
11.4;Developing on 64-Bit Computing Platforms;52
11.5;Summary;54
12;Chapter 4: Introducing the Android Software Development Platform;56
12.1;Understanding Java SE and the Dalvik Virtual Machine;57
12.2;The Directory Structure of an Android Project;58
12.2.1;Common Default Resources Folders;59
12.2.2;The Values Folder;60
12.3;Leveraging Android XML (Your Secret Weapon);61
12.3.1;Screen Sizes;62
12.3.2;Desktop Clocks;62
12.4;Using Your Android Application Resources;63
12.4.1;Bitmap Images;63
12.4.2;Alternate Resource Folders;64
12.5;Launching Your Application: The AndroidManifest.xml File;65
12.6;Creating Your First Android Application;66
12.6.1;Launching Eclipse;66
12.6.2;Creating an Android Project;67
12.6.3;Inspecting and Editing the Application Files;70
12.6.3.1;Opening the MyHelloWorld Activity;71
12.6.3.2;Opening the UI Definition;72
12.6.3.3;Opening the Strings Resource File;73
12.6.4;Setting a Variable Value in strings.xml;74
12.6.5;Running the App;75
12.6.6;Adding an Application Icon;76
12.6.6.1;Adding Transparency;77
12.6.6.2;Creating the Icons;78
12.7;Summary;80
13;Chapter 5: Android Framework Overview;82
13.1;The Foundation of OOP: The Object;83
13.1.1;Some OOP Terminology;84
13.1.2;The Blueprint for an Object: The Class;85
13.1.3;Providing Structure for Your Classes: Inheritance;90
13.1.4;Defining an Interface;91
13.1.5;Bundling Classes in a Logical Way: The Package;92
13.2;An Overview of XML;93
13.3;The Anatomy of an Android Application: The APK File;94
13.4;Android Application Components;95
13.4.1;Android Activities: Defining the UI;96
13.4.2;Android Services: Processing in the Background;97
13.4.3;Broadcast Receivers: Announcements and Notifications;97
13.4.4;Content Providers: Data Management;98
13.5;Android Intent Objects: Messaging for Components;99
13.6;Android Manifest XML: Declaring Your Components;100
13.7;Summary;102
14;Chapter 6: Screen Layout Design: Views and Layouts;104
14.1;Android View Hierarchies;104
14.1.1;Using the View Class;105
14.1.2;Nesting Views: Using the ViewGroup Class;105
14.2;Defining Screen Layouts: Using XML;107
14.2.1;Setting Up for Your Screen Layout;107
14.2.2;Using Linear Layouts;108
14.2.2.1;Creating the LinearLayouts Project in Eclipse;110
14.2.2.2;Editing the main.xml File;113
14.2.2.3;Editing the strings.xml File;114
14.2.2.4;Updating main.xml File;115
14.2.2.5;Viewing LinearLayoutActivity.java;116
14.2.2.6;Running the LinearLayout App;117
14.2.3;Using Relative Layouts;119
14.2.4;Sliding Drawers: Expanding Your UI;123
14.2.5;Using Padding and Margins with Views and Layouts;126
14.2.6;Setting Padding in Views;127
14.2.7;Setting Margins in ViewGroups;127
14.3;Summary;127
15;Chapter 7: UI Design: Buttons, Menus, and Dialogs;129
15.1;Using Common UI Elements;129
15.1.1;Adding an Image Button to Your Layout;130
15.1.1.1;Defining Multistate Image Button Graphics in XML;130
15.1.1.2;Creating the UI Image Button Project in Eclipse;131
15.1.1.3;Creating the button1.xml File;133
15.1.1.4;Editing the main.xml File;137
15.1.1.5;Replacing the Default Background;138
15.1.2;Adding a Text to Your Layout;140
15.1.3;Adding an Image;141
15.2;Using Menus in Android;143
15.2.1;Creating the Menu Structure with XML;144
15.2.2;Defining Menu Item Strings;145
15.2.3;Inflating the Menu Structure via Java;148
15.2.4;Running the Application in the Android Emulator;150
15.2.5;Making the Menu Work;150
15.3;Adding Dialogs;154
15.3.1;Using Custom Dialog Subclasses;154
15.3.2;Displaying an Alert Dialog;154
15.4;Summary;159
16;Chapter 8: An Introduction to Graphics Resources in Android;160
16.1;Introducing the Drawables;161
16.1.1;Implementing Images;161
16.1.2;Core Drawable Subclasses;162
16.2;Using Bitmap Images in Android;162
16.2.1;PNG Images;163
16.2.2;JPEG and GIF Images;164
16.3;Creating Animation in Android;164
16.3.1;Frame-based or Cel 2D Animation;164
16.3.1.1;Controlling Frame-based Animation via Java;168
16.3.1.2;Running the Frame-based Animation App in the Emulator;172
16.3.2;Tween Animation in Android;173
16.3.2.1;Creating the text_animation.xml File;174
16.3.2.2;Controlling Tween Animation via Java;177
16.4;Using Transitions;179
16.5;Creating 9-Patch Custom Scalable Images;183
16.6;Playing Video in Your Android Apps;189
16.6.1;Adding a VideoView Object;189
16.6.2;Adding the Java for Video;191
16.7;Summary;194
17;Chapter 9: Adding Interactivity: Handling UI Events;195
17.1;An Overview of UI Events in Android;195
17.1.1;Listening for and Handling Events;195
17.1.2;Handling UI Events via the View Class;196
17.1.3;Event Callback Methods;196
17.2;Handling onClick Events;197
17.2.1;Implementing an onClick Listener for a UI Element..;198
17.2.2;Adding an on Click Listener to an Activity in Android;199
17.2.2.1;Creating the Event Handling Examples Project in Eclipse;199
17.2.2.2;Editing the HandlerExamples.java File;200
17.2.2.3;Editing the main.xml File;204
17.2.2.4;Updating HandlerExamples.java;205
17.2.2.5;Running the Event Handling Examples App in the Emulator;206
17.3;Android Touchscreen Events: onTouch;207
17.4;Touchscreen's Right-Click Equivalent: onLongClick;207
17.5;Keyboard Event Listeners: onKeyUp and onKeyDown;210
17.5.1;Adding the XML for Keyboard Events;211
17.5.2;Adding the Java for Keyboard Events;211
17.6;Context Menus in Android: onCreateContextMenu;214
17.6.1;Adding the XML for Context Menus;214
17.6.2;Adding the Java for Context Menus;216
17.7;Controlling the Focus in Android;221
17.7.1;Adding the XML for Focus Control;222
17.7.2;Adding the Java for Focus Control;226
17.7.3;Setting Focus Availability;228
17.8;Summary;228
18;Chapter 10: Understanding Content Providers;229
18.1;An Overview of Android Content Providers;229
18.1.1;Databases and Database Management Systems;230
18.1.2;Android Built-in Content Providers;231
18.1.2.1;Contacts Database Contact Providers;232
18.1.2.2;Android MediaStore Content Providers;234
18.2;Defining a Content Provider;234
18.2.1;Creating the Content Providers Example Project in Eclipse;235
18.2.2;Defining Security Permissions;236
18.2.3;Adding Data to the Contacts Database;240
18.3;Working with a Database;243
18.3.1;Querying a Content Provider: Accessing the Content;243
18.3.2;Appending to a Content Provider: Adding New Content;249
18.3.3;Modifying Content Provider Data: Updating the Content;255
18.3.4;Removing Content Provider Data: Deleting Content;260
18.4;Summary;265
19;Chapter 11: Understanding Intents and Intent Filters;267
19.1;What Is an Intent?;267
19.2;Android Intent Messaging via Intent Objects;268
19.3;Intent Resolution: Implicit Intents & Explicit Intents;271
19.3.1;Explicit Intents;271
19.3.2;Implicit Intents;272
19.4;Using Intents with Activities;273
19.4.1;Writing the Digital Clock Activity;278
19.4.2;Wiring up the Application;281
19.4.3;Sending Intents;283
19.5;Android Services: Data Processing in its own Class;286
19.5.1;Using Intents with Services;286
19.5.2;Creating a Service;289
19.5.3;Implementing Our MediaPlayer Functions;293
19.5.4;Wiring the Buttons to the Service;294
19.5.5;Running the Application;295
19.6;Using Intents with Broadcast Receivers;296
19.6.1;Creating the Timer User Interface via XML;297
19.6.2;Creating a Timer Broadcast Receiver;298
19.6.3;Configuring the AndroidManifest.xml file Tag;300
19.6.4;Implementing our Intent;301
19.6.5;Running the Timer Application via the Android 1.5 Emulator;306
19.7;Summary;307
20;Chapter 12: The Future;308
20.1;Widgets: Creating Your Own Widgets in Android;308
20.2;Location-Based Services in Android;310
20.3;Google Maps in Android;311
20.4;Google Search in Android;314
20.5;Data Storage in Android;315
20.5.1;Shared Preferences;315
20.5.2;Internal Memory;316
20.5.3;External Memory;316
20.5.4;Using SaUte;317
20.6;Device Administration: Security for IT Deployments;317
20.7;Using the Android Camera Class to control a Camera;318
20.8;3D Graphics: Using OpenGL ES 1.x in Android;318
20.9;FaceDetector;319
20.10;Sound Pool;319
20.11;MediaRecorder;320
20.12;Summary;321
21;Index;322


Wallace Jackson has been writing for leading multimedia publications about his work in new media content development since the advent of Multimedia Producer Magazine nearly two decades ago, when he wrote about computer processor architectures for centerfolds (removable "mini-issue" insert) distributed at SIGGRAPH. Since then, Wallace has written for several other publications about his work in interactive 3D and new media advertising campaign design, including 3D Artist,Desktop Publishers Journal, CrossMedia, AVvideo and Kiosk Magazine.



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.