Android 2.3 Application Development practices

Source: Internet
Author: User
Android 2.3 Application Development practicesA comprehensive introduction to the operating environment of Android OS, including the latest sample programs in SDK 2.3, details Android Application Development, so that readers can quickly grasp the topics in each chapter and arrange advanced learning, meet the reading needs of different readersBasic InformationAuthor: Lincheng Press: Machinery Industry Press ISBN: 9787111343196 mounting Date: June 2011 http://product.china-pub.com/198254

Online reading of ebook in Android 2.3 Application Development practicesIntroductionTaking the Android operating system architecture as the basis and developing Android applications as the latitude, this article introduces the practical development technology of Android applications, this will allow developers to learn the architecture and Principles of the Android operating system and master the development skills of Android as soon as possible. The book describes the functions of Android 2.3 in a wide range of topics and provides a clear explanation. Android 2.3 Application Development practices includes Android introduction, development environment, application development platform, activity program activity, intent method intent, widget, layout form layout, menu, SQLite, service program application internationalization, webview, app widget, GPS location and googlemaps, audio and video, 2D drawing and 3D OpenGL drawing, surfaceview, dynamic wallpaper, Bluetooth communication, touch, sensor detection, Android 2.3 features, cameras, VoIP, and other content. Android 2.3 Application Development practices is intended for Android beginners, developers who want to master Android development skills, and project management personnel for Android development.DirectoryAndroid 2.3 Application Development practices Chapter 1 expand Java application in the Android Market 1st Android comes 2 1.1 Android operating system structure 3 1.2.1 Android Application 4 1.2.2 Android Application Development Platform 4 1.2.3 android various link libraries 5 1.2.4 Android runtime environment 6 1.2.5 Linux operating system core 7 1.3 oesf amplification function 7 1.3.1 oesf em embedded Project 7 1.3.2 oesf for related industries and Equipment 8 1.3.3 oesf team 9 1.4 Android-Windows development environment 10 1.5 how to upload application software to Android Market website 13 1.5.2 how to download application software from Android Market website 14 chapter 4 installation and Roid SDK Development Environment 2.1 Android SDK Development Environment 16 2.1.1 install Android SDK Development Environment 16. 2.1.2 quick introduction to installing the android SDK Development Environment Program 17 2.1.3 meet the requirements for installing the android SDK 17 2.2 install the android SDK development environment 18 2.2.1 install the android SDK software development kit 18 2.2.2 install the android development tool ADT 20 2.2.3 set Android development tool ADT 24 2.2.4 create Android Virtual Device AVD 25 2.2.5 verify Android SDK software development environment 28 2.2.6 install Windows USB driver 30 2.3 install Android SDK necessary software 32 2.3.1 install Java Development Kit JDK 33 2.3.2 install eclipse integrated development environment 34 2.4 update Android development tool ADT 35 2.5 Delete Android development tool ADT 36 2.6 Android-"Hello world !" Verify 36 2.6.1 generate Android app code 36 2.6.2 execute Android app 39 chapter 39 Android SDK development platform app 3rd Android SDK development platform app 43 3.1 Android simulator 43 3.2.1 control Android simulator 45 3.2.2 android simulator startup option 46 3.3 Android simulator dedicated SD memory card 47 3.4 Android system debugging tool-ADB 48 3.4.1 standard format of ADB command 49 3.4.2 detect ADB server information 49 3.4.3 install and remove application APK kit 50 3.4.4 Android operating system command line mode 51 3.4.5 upload files to/sdcard or self/sdcard download files 51 3.4.6 change TCP communication port 52 3.4.7 start and close ADB server 52 3.4.8 Android Simulator debugging monitoring report 52 3.5 Android debugging Monitoring Service System ddms 53 3.5.1 The Eclipse development environment provides ddms53 3.5.2 ddms batch processing file 55 chapter 4th understanding Android basic unit-activity Program Activity 4.1 Android Application Composition 59 4.1.1 activity program-activity 59 4.1.2 activity program-activity example 59 4.2 Lifecycle) 63 4.2.1 lifecycle of migration of execution status in the Android operating system 64 4.2.2 activity program-Example of lifecycle of activity execution status migration 66 4.3 proficient in activity program-activity control function 69 4.3.1 finish () method 70 4.3.2 isfinishing () method 70 4.3.3 onlowmemory () method 70 Chapter 1 activity switching-intent method intent 5th activity and intent method intent 72 5.1.1 how does Android switch display Form 72 5.1.2 chat Activities Application 73 5.1 create chat Activities Application APP 74 5.2.1 chat activities app-form layout 74 5.2.2 chat activities app-resource 75 5.2.3 chat activities app-manifest 76 5.3 chat activities app implement 77 5.4 Standard intent method intent 80 chapter 2 Android app widget creation kit 6th Android app human/machine interface 84 6.1.1 View) 84 6.1.2 view group 84 6.2 Android Application form layout 85 6.2.1 layout editor-android layout editor 85 6.2.2 resource editor-android resource editor 86 6.3 View) example 86 6.3.1 button event processing-button 89 6.3.2 edit box event processing-edittext 93 6.3.3 clock event processing-analogclock/digitalclock 96 6.3.4 progress bar event processing-progressbar 98 6.3.5 Date and Time event processing- datepicker/timepicker 101 6.3.6 time table event processing-chronometer 104 6.3.7 dialog box event processing-alertdialog/toast 105 6.3.8 drop-down list event processing-spinnerselect 110 6.3.9 grid view event processing-gridview 112 6.3.10 video playback events processing-video 114 6.3.11 album event processing-gallery 116 6.3.12 drag event processing-ratingbar/seekbar 118 chapter 7th layout form layout of Android applications 7.1 form layout of Android applications 122 7.1.1 table layout-table layout 123 7.1.2 linear Layout-linear layout 124 7.1.3 relative Layout-relative layout 126 7.1.4 absolute Layout-absolute layout 127 7.1.5 framework Layout-frame layout 129 7.2 create a form layout file 130 7.2.1 create a display form XML file 130 7.2.2 design display form layout 130 7.3 display form layout example 131 7.3.1 table layout example-table layout 134 7.3.2 linear layout example-linear layout 136 7.3.3 relative layout example-relative layout 138 7.3.4 absolute layout example-absolute layout 140 7.3.5 format layout example program for layout Chapter 142 menu 8th for Android apps menu 8.1 options for Android apps menu-option menu 145 8.1.2 context menu-context menu 146 8.1.3 sub menu-submenu 146 8.2 planning option menu 146 8.2.1 how to plan option menu 146 8.2.2 how to process option menu option 147 8.2.3 processing option menu example 148 8.3 planning context menu 150 8.3.1 how to plan context menu 151 8.3.2 how to process context menu options 151 8.3.3 processing context menu example 152 Planning Sub menu 8.4 8.4.1 how to plan sub menu 154 8.4.2 how to handle sub-menu options 155 8.4.3 processing sub-menu examples 155 chapter 9th Android data storage and data disclosure-SQLite 9.1 Android data storage and sharing 159 9.2 sharing priority data method-shared preferences 159 9.2.1 shared priority data access method 160 9.2.2 application example-stored priority data when leaving 165 9.3 database storage method-SQLite databases 167 9.3.1 SQLite database addition, update, deletion, and retrieval method 170 9.3.2 SQLite database Association operation method 176 9.4 content provider method-content providers182 9.4.1 content provider public data method 185 9.4.2 SQLite application use content provider to public data 190 9.5 file storage method-files198 9.5.1 File writing, reading, and copying Methods 199 9.5.2 SQLite database and applications released together 204 9.6 network storage method-networks 206 Chapter 10th recognition service program 10.1 Android Application Composition 219 10.1.1 service program service role 219 10.1.2 broadcast receiver role 219 10.2 service program service 220 10.2.1 start service program service 221 10.2.2 service program service execution status migration 221 10.2.3 create a service program service223 10.3 broadcast receiver broadcastreceiver 223 10.3.1 broadcast event 223 10.3.2 use broadcastreceiver broadcast receiver 224 10.4 service program and broadcast receiver integration chapter 225 Android Application internationalization 11th Android internationalization 11.1 Android Resource Planning 235 11.2.1 create Android resources 11.2 11.2.2 create android multi-language resource 237 11.3 Android multi-language example 238 chapter 12th Android Web View-webview 12.1 Android Web View 241 12.1.1 Android browser webview 241 12.1.2 Android Application and JavaScript interaction 241 12.2 browser Web View. loadurl implementation method 241 12.3 browse Web page webview example 243 12.3.1 directly download Yahoo or Google Web page 246 12.3.2 enter web site and then download web page 249 12.3.3 webview web page forward and backward browse History Management-back/forward 251 12.3.4 webview webpage zoom in and out-zoom in/zoom out 255 12.4 touch webpage motion gesture 258 12.5 Android app and Javascript script code interoperability method 261 12.5.1 Javascript script code call Android app 262 12.5.2 Javascript script code warning information 263 12.5.3 Android Application calls Javascript script code 264 12.6 Javascript script code interconnection example 266 12.6.1 Javascript script code calls Android Application Example 268 12.6.2 warning information example of Javascript script code 271 12.6.3 Language Translation Examples of Javascript script code 273 12.6.4 examples of Javascript script code called by Android applications 276 chapter 13th Android resident program-app widget 13.1 Android resident program app widget experience 280 13.1.1 call resident program APP widget280 13.1.2 general system resident program and Android system resident program 281 13.2 available functions of Android resident program 281 13.3 life cycle of resident program 282 13.4 setting up Android resident program method 283 13.4.1 Android configuration file 284 13.4.2 resident program information file 285 13.4.3 layout form layout file 285 13.4.4 appwidgetprovider resident program 286 13.4.5 resident program configuration activity 287 13.4.6 implement resident program lifecycle-appwidgetprovider 288 13.5 Android resident program example 289 13.5.1 resident program life cycle-lifecycle example 291 13.5.2 execution at specified intervals-slideshow resident program example 295 13.5.3 execution at specified intervals-whattimeisitnow resident program example 296 13.5.4 execution at specified time-alarmmanagersample resident program example 298 13.5.5 run when you click the button-clicksample resident program example 301 13.6 use a custom thread to process resident program example 304 13.7 use timer task to process resident program example 306 chapter 14th Android applications GPS location and googlemaps 14.1 GPS location and googlemaps 309 14.1.1 GPS positioning service 309 14.1.2 Google map External Database 309 14.2 get GPS location information 309 14.2.1 locationmanager class 310 14.2.2 locationlistener interface 310 14.2.3 location class 311 14.2.4 locationprovider type 311 14.2.5 locationgps application example-GPS location information 311 14.2.6 in the simulator test locationgps application example 314 14.3 get Google map external library 316 14.3.1 work before developing Google map applications 316 14.3.2 google map application example-Get Map 318 from Google map service system 14.4 get the map API key 320 14.4.1 use the key 320 14.4.2 of the map API key to generate the keystore and obtain the authentication fingerprint (MD5) code 320 14.4.3 signed by the Google website to obtain Maps API key 321 14.5 Google map labeled 323 14.5.1 Google map app example-implement an itemizedoverlay class 323 14.5.2 Google map app example-Google tag 325 14.6 on the map display Google map 327 chapter 15th Android audio and video 15.1 Android audio and video 331 15.2 play video on the form layout-videoview 332 15.3 play audio and video-mediaplayer 334 15.3.1 playback media from local resources 334 15.3.2 playback media from system files and data streams 335 15.4 playback media application example mediaplayer335 15.4.1 mediaplayeraudio application example 338 15.4.2 mediaplayervideo application example 342 15.5 play jet content 349 15.6 capture audio content-mediarecorder350 15.7 Android Text to Speech conversion-texttospeech 351 chapter 16th Android 2D drawing and 3D OpenGL drawing 16.1 Android operating system drawing 355 16.1.1 2D drawing 355 16.1.2 3D drawing 355 16.2 Method of Drawing 2D images 355 16.3 Image Display object-drawable 356 16.3.1 create images from project resources 356 16.3.2 sample 358 16.3.3 create images from XML files define image 359 16.3.4 define image from XML file-transitiondrawable example 361 16.3.5 shape image draw object-shapedrawable 362 16.4 create 2D animation-animation 364 16.4.1 animation draw object-tween animation 364 16.4.2 supplement animation between draw object-tween animation example 367 16.4.3 Frame Animation draw object-Frame Animation 371 16.4.4 Frame Animation draw object-Frame Animation example 372 16.5 painting image directly on the canvas-canvas 376 16.5.1 canvas painting graphics-view 376 16.5.2 canvas plotting graphics-view examples 377 16.5.3 canvas high-speed profiling-surfaceview 379 16.6 3D OpenGL plotting 380 chapter 17th Android high-speed profiling-surfaceview 17.1 Android high-speed profiling surfaceview 382 17.1.1 high-speed profiling canvas surfaceview method-surfaceview. getholder382 17.1.2 high-speed canvas surfaceview method-surfaceholder. callback 382 17.1.3 surfaceview class and method 383 17.1.4 various plotting methods and methods 384 17.1.5 surfaceview class key input event 386 17.2 high-speed profiling surfaceview example 386 17.2.1 high-speed profiling canvas surfaceview method-surfaceview. getholder example 388 17.2.2 high-speed canvas surfaceview method-surfaceholder. callback example 390 17.2.3 smooth sawtooth method-antialias example 392 17.2.4 illustration of methods and methods-simple game395 17.2.5 depicts the storage and reply examples of the canvas-canvas method 405 17.2.6 example of Button event processing-Key 408 17.2.7 examples of touch and trackball event processing-touch & trackball 410 17.2.8 examples of transparent events-transparent 412 17.2.9 examples of translucent events-translucent 415 chapter 18th Android live wallpaper-live wallpaper 18.1 Android live Wallpaper wallpaper 421 18.1.1 live wallpaper architecture 421 18.1.2 wallpaperservice and wallpaperservice. engine method 421 18.2 Android dynamic wallpaper setting 422 18.2.1 simple dynamic wallpaper live wallpaper setting 422 18.2.2 dynamic wallpaper adjusting parameters live wallpaper setting 424 18.3 Android dynamic wallpaper application design 428 18.3.1 simple dynamic wallpaper live wallpaper application design 428 18.3.2 adjust parameters live wallpaper application design 430 18.4 Android live wallpaper application example-flame dance 430 18.5 Android live wallpaper application example-animation parameter settings 434 18.6 Android live wallpaper application example-Automatic Photo switch 439 18.7 Android live wallpaper application example-touch switch photo 444 chapter 19th Android Bluetooth communication-Bluetooth 19.1 Android Bluetooth communication 2017th450 19.1.1 Android Bluetooth Communication bluetooth basic architecture 450 19.1.2 define Bluetooth communication Bluetooth permission-Permission 451 19.2 establish Bluetooth communication 2017th451 19.2.1 set Bluetooth communication-setting up bluetooth 452 19.2.2 discover bluetooth device-finding devices 453 19.2.3 connect bluetooth device- connecting devices455 19.2.4 manage Bluetooth connections-managing a connection 459 chapter 20th Android touch screen-gesture 20.1 Android touch screen gesture463 20.2 Android touch screen gesture processing sequence 464 Android touch screen gesture example 20.3 chapter 465 android sensing detection-sensor 21.1 Android sensing detection sensor 469 21.2 Android sensing detection management-sensormanager469 21.3 Android acceleration sensing detection-accelerometer 471 21.4 Android magnetic field sensing detection-magnetic 472 Android azimuth sensing detection- orientation 472 21.6 Android temperature sensing detection-temperature473 21.7 Android sensing detection sensor sample 473 21.7.1 perform a finger-Compass sample 475 21.7.2 Android azimuth sensing detection-orientation sample 478 21.7.3 Android acceleration sensing detection-Accelerometer example 483 21.7.4 Android magnetic field sensing detection-magnetic example 487 21.7.5 Android temperature sensing detection-temperature example 490 chapter 22nd report Android OS 2.3 ginger pie to 22.1 Android OS 2.3 ginger pie gingerbread version 495 22.1.1 simpler interface with easier operation 495 22.1.2 more intuitive text input and faster operation speed 495 22.1.3 multi-touch input 496 22.1.4 enhanced text copy and clipboard 496 22.1.5 enhanced power management features 497 22.1.6 for Applications program Control 497 22.1.7 built-in VoIP SIP stack 498 22.1.8 supports close-range wireless communication NFC 498 22.1.9 Download Application Management 499 22.1.10 provides multiple cameras, you can choose to use a front camera to shot 499 22.1.11 to enhance the performance of the mobile phone execution game 499 22.1.12 Add a gyroscope and several new sensors api499 22.1.13 enhance the multimedia sound field effect 500 22.1.14 support the new media format 500 Android OS 2.3 new features provided to developers 500 22.2.1 enhanced game software development 501 22.2.2 rich multimedia features 502 22.2.3 new methods of communication and new class packages in the format 502 22.3 Android OS 2.3 503 Chapter 4 camera essential for Android phones 23rd Android camera principle 23.1 23.1.1 information configuration file "androidmanifest. XML "505 23.1.2 camera application procedure 505 23.2 507 design a camera software 507 23.2.1 preview the image taken by the camera 509 23.2.2 automatic camera focal points and taking photos 511 23.2.3 parameters for configuring camera features 23.2.4 textures on captured images 511 23.3 Android OS 2.3 added camera new feature 512 23.3.1 read entity camera number 512 23.3.2 read entity camera information 513 23.3.3 enable specified entity camera 513 23.4 camera software basic operation example 513 23.4.1 camera application example-camera preview 515 23.4.2 camera application example-Camera Auto Focus 522 23.4.3 camera application example-camera parameters setting 526 23.4.4 camera application example-over on photo 535 23.5 design your own camera application software example 537 chapter 24th design android network telephone VOIP-Sip 24.1 network telephone voip544 24.1.1 network telephone VOIP provided by a third-party development company 544 24.1.2 network telephone VOIP Basics concept 544 24.1.3 network telephone VOIP operation method 546 24.2 android network telephone VOIP 547 using SIP design "androidmanifest. XML "548 24.2.2 network telephone VOIP design method using SIP 548 24.3 Android radio walkie talkie application example using SIP 549 Appendix A Android Application Example CD usage instructions A.1 sample CD 565 A.2 Android SDK development Environment 565 A.3 enter eclipse integrated development environment 565 A.4 Android Application Example 566 A.4.1 project 566 A.4.2 for generating Android applications compiling and executing Android Application Example 568
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.