Best practices for Android and PHP Development

Source: Internet
Author: User
Tags learn php php session php development environment
Author of basic information of "best practices for Android and PHP development": Huang Xiaoshi series name: Mobile Application Development Technology series Press: Machinery Industry Press ISBN: 9787111410508 Release Date: march 2013: 16 open pages: 1: 1-1 category: Computer
For more information, "" Android and PHP development best practices "computer books" Android and PHP development best practices "are the first in China to describe Android client development and PHP server development. classic Works. The best practices for Android and PHP development is based on a complete Weibo application project instance. It explains the ideas and skills for Android client development and PHP server development from a simple perspective. From the product design and architecture design in the early stage, to the coding Implementation of the client and server, to performance testing and system optimization, and the final packaging and release, this section describes the process of mobile Internet application development. At the same time, this book also introduces the features of Android systems, such as Google Maps, LBS functions, sensors, cameras, multimedia and voice functions. In addition, this book also introduced the development of Android ndk and android game development related content, including the use of OpenGL, popular game engine cocos2d-x and unity 3D. Android and PHP development best practices are suitable for all users interested in Android and PHP technologies. Developers of both the client and server can gain a lot of useful experience from this book. In addition, it is worth mentioning that the vast majority of instance code in the book is derived from real projects, and the reference value is extremely high. Contents: "Best Practices for Android and PHP development" Preface 1 quasi-standby article chapter 1 pre-school students 1 1st coming of the mobile Internet age 1 1.1 why Android and Php 2 1.2 How to Learn Android and PHP 3 1.3.1 how to learn Android 3 1.3.2 how to learn PHP 4 1.3.3 learn Android and PHP 4 1.4 Summary 5 chapter 5 Android development preparation 6 2nd Android background knowledge 6 2.1 Android system framework 8 2.2 Android applications framework 11 2.3.1 Activity) 12 2.3.2 message (intent) 14 2.3.3 view 16 2.3.4 task 17 2.4 four components of Android system 19. 2.4.1 activity 20 2.4.2 Service 21 2.4.3 broadcast receiver 23 2.4.4 content provider 24 2.5 Android context 25 2.5.1 interface Context) 25 2.5.2 application context (application context) 27 2.6 Android data storage 28 2.6.1 application configuration (shared preferences) 28 2.6.2 local files 29 2.6.3 database (SQLite) 30 2.7 Android Application Interface 31 2.7.1 control properties 31 2.7.2 layout (layout) 33 2.7.3 event 37 2.7.4 menu (menu) 39 2.7.5 Theme 41 2.7.6 dialog box (dieme) 42 2.8 Android graphic interface 43 2.8.1 paint 43 2.8.2 canvas 44 2.8.3 basic ry 46 2.8.4 Common graphic transformation 47 2.9 Android animation effect 50 2.9.1 frame-by-frame animation (Frame Animation) 50 2.9.2 tween animation) 51 2.10 Android development environment 52 2.10.1 Development Environment setup 53 2.10.2 first Android project 58 2.10.3 use ddms debugging tool 63 2.11 summary 64 Chapter 64 php development preparation 65 3rd php development basics 65 3.1.1 PHP language overview 65 3.1.2 PHP syntax 66 3.1.3 php development start 68 3.1.4 PHP Object-Oriented Programming 75 3.1.5 PHP session 78 3.2 php development environment 80 3.2.1 Development Environment establishment 80 3.2.2 installation and configuration XAMPP 81 3.2.3 manage Apache 83 3.2.4 manage MySQL 84 3.3 Use JSON communication 87 3.4 common php development framework 88 3.5 understand the characteristics and advantages of the smarty template engine 90 3.6 development framework introduction 93 3.6.1 framework 94 3.6.2 framework basic directory structure 94 3.6.3 framework MVC ideas 97 3.6.4 framework MVC instance analysis 99 3.7 summary 108 Article 2 practice chapter 4th instance product design 109 4.1 why choose Weibo 109 preparations before development 110 4.2.1 select development mode 110 4.2.2 understand Project Planning 111 4.2.3 understand prototype design 112 4.3 functional module design 112 application interface design 4.4 application architecture design 114 Communication Protocol definition 4.5 Database Structure Design 118 4.8 Summary 120 chapter 5th program architecture design 121 server-side program architecture design 5.1 5.1.1 Basic Framework Design 121 5.1.2 debugging Framework Design 122 5.1.3 core Class Library Design 127 5.1.4 server-side MVC and SOA 130 136 Client program architecture design 136 5.2.1 Basic Framework Design 137 5.2.2 core package design 138 5.2.3 Android Application MVC 142 5.3 client interface architecture design 142 5.3.1 interface framework design 143 5.3.2 Main Interface Design 144 5.4 summary 146 6th chapter server development 147 6.1 getting started 147 6.1.1 interface program development 147 6.1.2 debugging framework development 151 6.1.3 generate interface document 155 6.2 verification interface 156 6.2.1 user login interface 156 6.2.2 user logout interface 160 6.3 user interface 162 6.3.1 create user interface 162 6.3.2 update user information interface 164 6.3.3 view User information interface 165 6.3.4 add fan interface 167 6.3.5 Delete fan interface 171 6.4 Weibo interface 172 6.4.1 publish Weibo interface 172 6.4.2 view Weibo interface 174 6.4.3 Weibo list interface 176 6.5 comments interface 180 6.5.1 comments interface 180 6.5.2 Comments List interface 182 6.6 picture interface 184 6.6.1 user profile interface 185 6.6.2 profile picture list interface 188 6.7 notification interface 189 web interface 192 6.8.1 web UI (jquery mobile) 193 6.8.2 web edition map interface 195 6.9 summary 196 chapter 7th client development 198 7.1 Introduction to development 198 7.1.1 development ideas 198 7.1.2 master application configuration file 200 7.1.3 conventional Program Development and debugging 211 7.2 interface Layout and Behavior Control 221 7.2.1 use layout 221 7.2.2 use merge integrated interface 224 7.2.3 use event to control user behavior 226 7.2.4 use intent control interface to switch 228 7.3 network communication module 231 7.3.1 use httpclient for network communication 231 7.3.2 support for cmwap Network Access Mode 237 7.3.3 use the JSON library for Message decoding 240 7.3.4 use the toast message to prompt 245 7.4 asynchronous task module 247 7.4.1 process and thread 247 7.4.2 task creation thread 249 7.4.3 Task Processing handler 255 7.4.4 use asynctask 257 7.5 Global function module 259 7.5.1 global UI base class 259 7.5.2 global menu 264 7.5.3 global dialog window 265 7.5.4 use service to get notifications 266 7.5.5 use notification to display notifications 270 7.6 User Logon interface 273 7.6.1 interface program logic 273 7.6.2 use textview 273 7.6.3 use edittext 274 7.6.4 use button 276 7.6.5 use shape and Selector 277 7.6.6 use checkbox 279 7.6.7 use sharedpreference 280 7.7 Weibo list interface 281 7.7.1 interface program logic 281 7.7.2 use listview 286 7.7.3 use imageview 290 7.7.4 use draw9patch 292 7.7.5 to asynchronously obtain remote images 294 7.7.6 use sdcard to cache images 297 7.7.7 use SQLite to cache data 300 7.8 my weibo list 303 7.8.1 interface program logic 303 7.8.2 use scrollview 309 7.8.3 use custom Weibo list 310 7.9 Weibo Article Page 313 7.9.1 interface program logic 313 7.9.2 interface layout (integrated with UI controls) 319 7.9.3 posting comments 322 7.9.4 posting Weibo 326 7.10 user configuration page 328 7.10.1 interface program logic 328 7.10.2 using custom Option List 333 7.10.3 modifying signature function 334 7.10.4 changing Avatar implement 334 7.11 web page development 340 7.11.1 interface program logic 340 7.11.2 use webview 341 7.11.3 use progressdialog 343 7.11.4 use webview rewrite and callback 346 7.11.5 web page map instance analysis 348 7.12 summary 349 Article 3 Optimization chapter 2 Performance Analysis 8th 351 Performance Testing 8.1 8.1.1 server stress testing 351 8.1.2 client Performance Testing 352 359 8.2 bottlenecks 364 8.2.1 server bottleneck analysis 365 8.2.2 client bottleneck analysis 366 8.3 optimization ideas 366 8.4 summary 367 chapter 9th server optimization 368 Optimization of PHP programs 9.1 9.1.1 Optimization of PHP code 368 9.1.2 Optimization of session mechanism 368 9.1.3 use of cache middleware 371 9.1.4 use APC acceleration 373 376 Optimization of Data Transmission 9.2 9.2.1 Optimization JSON protocol 377 9.2.2 use gzip compression 379 9.3 other optimizations 380 9.3.1 server optimization 380 9.3.2 database optimization 383 9.3.3 network optimization 386 9.4 summary 386 Chapter 2 client optimization 10th 387 optimization Android program 10.1 10.1.1 optimization Java code 387 10.1.2 asynchronous data acquisition 391 10.1.3 file resource cache 391 10.1.4 database cache 392 10.2 prevent memory leakage 392 10.2.1 Android memory management 392 10.2.2 how to determine Memory leakage 393 10.2.3 common memory leakage 395 10.3 optimize Android UI 396 10.3.1 template code optimization 396 10.3.2 layout optimization 397 10.3.3 use hierarchy Viewer tool 402 10.4 other optimizations 403 10.4.1 optimized image 403 10.4.2 optimized APK package 403 10.4.3 use keytool and jarsigner signature 404 10.4.4 use zipalign optimization 407 10.5 summary 408 Chapter 4 advanced chapter 11th Android feature development 409 11.1 use Google map API 409 11.2 use lbs feature 414 11.3 use sensor 419 use camera 11.4 422 multimedia Development 431 11.6 Speech Recognition 439 summary 11.7 chapter 441 Android ndk Development 12th 442 ndk development basics 12.1 12.1.1 reasons for using ndk 442 12.1.2 using ndk to call C or C ++ 442 12.1.3 android. MK and application. MK 445 12.2 ndk development entry 448 12.2.1 Development Environment Construction 448 12.2.2 first ndk project 449 12.3 Summary 456 chapter 13th android game development 457 13.1 mobile game development basics 457 13.1.1 mobile game development ideas 457 13.1.2 greedy snake and ship game instance 462 13.1.3 awareness android game engine 464 13.1.4 use OpenGL and OpenGL ES 466 13.1.5 use renderscript 472 13.2 mobile game development advanced 474 13.2.1 awareness cocos2d-x 475 13.2.2 setup cocos2d-x Development Environment 475 13.2.3 First cocos2d-x project 475 13.2.4 understand unity 3D 487 13.3 Summary 489 Appendix A hush Framework framework instance source code deployment 490 appendix B microblogging application instance source code deployment 495 Book Information Source: china Interactive publishing network
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.