Title: Android Application Development
Basic Information
Original Title:Android apps for absolute beginners
Author:(US) Wallace JACKSON [Translator's introduction]
Translator:Zhou ziheng
Series Name:Turing programming Series
Press:People's post and telecommunications Publishing House
ISBN:9787115300409
Mounting time:2012-12-10
Publication date:January 2013
Start:16
Page number:1
Version:1-1
Category:Computer> Software and program design> mobile development> android
For more information, see Introduction to Android application development.
Introduction
Computer books
Android Application Development basics is an introductory course for Android Application Development. It describes Android development in a simple and step-by-step manner and explains various knowledge points based on actual examples. Main content includes: Machine deployment; Java and XML introduction; efficient development using eclipse; application framework overview; UI and graphic design; addition of interaction; content providers, intent, and intent filters; use Basic Java and XML knowledge to build advanced applications.
Getting started with Android Application Development is suitable for mobile developers and anyone interested in Android application development.
Directory
Introduction to Android Application Development
Chapter 1 Introduction 1
1.1 What is Android 1
1.2 advantages of Android 2
1.3 book Scope 3
1.3.1 content 3 of this book
1.3.2 content not covered in this book 4
1.4 download SDK tool 4
1.4.1 Java 5
1.4.2 eclipse 6
1.4.3 Android SDK 7
1.5 conclusion 7
Chapter 1 synopsis of this book 9
2.1 Android integrated development environment 9
2.2 working principles of Java, XML, and Android 11
2.3 Android Application Framework 11
2.4 screen Layout Design 12
2.5 User Interface Design 12
2.6 image and animation design 13
2.7 interaction 13
. 2.8 content provider 13
2.9 intent and intent filters 14
2.10 Android's future 14
2.11 Conclusion 15
Chapter 16 configure the android Development Environment 16
3.1 install Java, eclipse, and Android 16
3.1.1 Java SE and JRE: basis for application development 16
3.1.2 Eclipse IDE: Development Environment 18
3.1.3 Android SDK: Android toolkit for eclipse 21
3.1.4 Android development tool: Android tool 22 for eclipse
3.1.5 Android Environment 25 in eclipse
3.2 upgrade Android SDK 26
3.3 configure AVD and smart phone connection 29
3.3.1 AVD: smartphone simulator 29
3.3.2 USB smartphone DRIVER: external device 31
3.4 development on 64-bit platform 31
3.5 summary 33
Chapter 4 Introduction to the Android software development platform 34
4.1 Understand Java SE and Dalvik virtual machine 34
4.2 Android project directory structure 35
4.2.1 Typical default Resource Directory 36
4.2.2 values directory 37
4.3 make good use of Android XML (your secret weapon) 38
4.3.1 screen size 39
4.3.2 desktop clock 39
4.4 use Android Application resources 40
4.4.1 bitmap image 40
4.4.2 available resource directory 40
4.5 start the application: androidmanifest. xml file 41
4.6 create the first Android Application 42
4.6.1 start eclipse 42
4.6.2 create an android project 43
4.6.3 view and edit the application file 45
4.6.4 set the value of a variable in strings. xml 49
4.6.5 run the application 51
4.6.6 add an application icon 52
4.7 summary 55
Chapter 4 Android framework Overview 56
5.1 basics of OOP: Object 56
5.1.1 some OOP terms 58
5.1.2 Design Drawing of the object: Class 58
5.1.3 assign structure to the class: Inherit 62
5.1.4 define interface 64
5.1.5 organize classes: Pack 65
5.2 XML overview 66
5.3 profiling Android applications: APK file 66
5.4 Android Application Component 68
5.4.1 Android activity: Define UI 68
5.4.2 Android service: background processing 69
5.4.3 broadcast receiver: messages and notifications 69
5.4.4 content provider: Data Management 70
5.5 Android intent object: component communication 71
5.6 Android manifest XML: component Declaration 71
5.7 summary 73
Chapter 4 screen Layout Design: View and layout 75
6.1 Android view structure 75
6.1.1 use view 75
6.1.2 nested view: Use viewgroup 76
6.2 define screen layout: use XML 77
6.2.1 configure screen layout 77
6.2.2 linear layout 78
6.2.3 use relative layout 88
6.2.4 slide drawer: Expand your UI 91
6.2.5 use the internal and external margins 94 in the view and Layout
6.2.6 set the padding 95 in the view
6.2.7 set the margin 95 in viewgroup
6.3 Conclusion 95
Chapter 3 buttons, menus, and dialog box 97
7.1 use common UI elements 97
7.1.1 add image button for layout 97
7.1.2 add text 107 to the layout
7.1.3 add image 108
7.2 use menu 110
7.2.1 create a menu structure in XML 111
7.2.2 define menu item text 112
7.2.3 load the menu structure 115 using Java
7.2.4 run application 116 in Android Simulator
7.2.5 enable menus to play a role 117
7.3 add dialog box 119
7.3.1 use a custom dialog box subclass 120
7.3.2 warning dialog box 120
7.4 conclusion 124
Chapter 5 Introduction to Android image resources 8th
8.1 image resource Introduction 125
8.1.1 call image 126
8.1.2 core image resource subclass 126
8.2 use bitmap 127
8.2.1 PNG 127
8.2.2 JPEG and GIF image 128
8.3 create an animation 128
8.3.1 frame-based 2D animation 128
8.3.2 compensation animation 136
8.4 use transition 141
8.5 create 9-patch custom scaling image 145
8.6 play video 150
8.6.1 add videoview object 150
8.6.2 add Java code 152 to the video
8.7 conclusion 154
Chapter 5 adding interactivity: handling UI events 9th
9.1 UI event overview 155
9.1.1 event monitoring and handling 155
9.1.2 UI event handling through View class 155
9.1.3 callback Method 156
9.2 process onclick event 157
9.2.1 implement onclick listener 157 For the UI element
9.2.2 add onclick listener 158 to the activity
9.3 Android touch screen event: ontouch 165
9.4 touch screen edition right-click: onlongclick 166
9.5 keyboard event listener: onkeyup and onkeydown 169
9.5.1 add XML Code 169 for Keyboard Events
9.5.2 add Java code 170 for Keyboard Events
9.6 context menu: oncreatecontextmenu 171
9.6.1 add XML Code 172 for context menu
9.6.2 add Java code 173 for context menu
9.7 focus control 178
9.7.1 add XML Code 179 for focus control
9.7.2 add Java code 182 for focus control
9.7.3 set focus availability 184
9.8 conclusion 185
Chapter 4 Introduction to content providers 10th
10.1 overview of Android content providers 186
10.1.1 database and database management system 186
10.1.2 Android built-in content provider 188
10.2 definition content provider 190
10.2.1 example of creating a content provider in eclipse 191
10.2.2 security permission 192
10.2.3 add data 195 to the contact database
10.3 Database Operations 197
10.3.1 query content provider 197
10.3.2 add data 203 to the content provider
10.3.3 modify content provider data 208
10.3.4 Delete content provider data 212
10.4 conclusion 217
Chapter 4 Introduction to intent and intent filters 11th
11.1 what is intent 218
11.2 transmit messages through intent object 219
11.3 intent resolution: explicit intent and implicit intent 221
11.3.1 explicitly set intent 221
11.3.2 implicit intent 222
11.4 use intent 223 during activities
11.4.1 write digital clock activity 227
11.4.2 connect to application 230
11.4.3 send intent 231
11.5 Android service: Process Data 234 in your own class
11.5.1 use intent 234 in the service
11.5.2 create service 237
11.5.3 media playback 241
11.5.4 connect the button to service 241
11.5.5 run application 243
11.6 use intent 244 in broadcast receivers
11.6.1 create a timer user interface with XML 244
11.6.2 create a scheduled broadcast receiver 246
11.6.3 configure the [handler er] label 247 of the androidmanifest. xml file
11.6.4 implement intent 248
11.6.5 run the timer application 1.5 in the android 252 Simulator
11.7 Conclusion 253
Chapter 2 exploring the future 12th
12.1 create custom parts 254
12.2 location service 256
12.3 Google map 256
12.4 Google search 259
12.5 data storage 260
12.5.1 option 260
12.5.2 internal storage 261
12.5.3 external storage 261
12.5.4 use SQLite 261.
12.6 device management: IT security deployment 262
12.7 use the camera class to control the camera 262
12.8 3D graphics: use OpenGL ES 1.x 262
12.9 face recognition 263
12.10 audio pool 263
12.11 media recording 264
12.12 conclusion 265
Source of this book: China Interactive publishing network