Home Backend Development PHP Tutorial Android跟PHP开发最佳实践

Android跟PHP开发最佳实践

Jun 13, 2016 pm 12:52 PM
android nbsp php

Android和PHP开发最佳实践

《Android和PHP开发最佳实践》
基本信息
作者: 黄隽实   
丛书名: 移动应用开发技术丛书
出版社:机械工业出版社
ISBN:9787111410508
上架时间:2013-3-6
出版日期:2013 年3月
开本:16开
页码:1
版次:1-1
所属分类:计算机

更多关于 》》》《Android和PHP开发最佳实践》
内容简介
计算机书籍
  《android和php开发最佳实践》是国内第一本同时讲述android客户端开发和php服务端开发的经典著作。
   《android和php开发最佳实践》以一个完整的微博应用项目实例为主线,由浅入深地讲解了android客户端开发和php服务端开发的思路和技巧。从前期的产品设计、架构设计,到客户端和服务端的编码实现,再到性能测试和系统优化,以及最后的打包发布,完整地介绍了移动互联网应用开发的过程。同时,本书也介绍了android系统中比较有特色的功能,比如google地图、lbs功能、传感器、摄像头、多媒体以及语音功能的使用等。此外,本书还介绍了android ndk的开发以及android游戏开发的相关内容,包括opengl的使用、流行游戏引擎cocos2d-x和unity 3d。
   《android和php开发最佳实践》适合于所有对android和php技术有兴趣的读者。不管是客户端还是服务端的开发者,都可以从本书中获得不少有用的经验。另外,值得一提的是,全书绝大部分的实例代码均源自于真实项目,参考价值极高。 
目录
《android和php开发最佳实践》 
前言 
第一篇  准 备 篇 
第1章 学前必读 1 
1.1 移动互联网时代的来临 1 
1.2 为何选择android和php 2 
1.3 如何学习android和php 3 
1.3.1 如何学习android 3 
1.3.2 如何学习php 4 
1.3.3 同时学好android和php 4 
1.4 小结 5 
第2章 android开发准备 6 
2.1 android背景知识 6 
2.2 android系统框架 8 
2.3 android应用框架 11 
2.3.1 活动(activity) 12 
2.3.2 消息(intent) 14 
2.3.3 视图(view) 16 
2.3.4 任务(task) 17 
2.4 android系统四大组件 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上下文 25 
2.5.1 界面上下文(activity context) 25 
2.5.2 应用上下文(application context) 27 
2.6 android数据存储 28 
2.6.1 应用配置(shared preferences) 28 
2.6.2 本地文件(files) 29 
2.6.3 数据库(sqlite) 30 
2.7 android应用界面 31 
2.7.1 控件属性 31 
2.7.2 布局(layout) 33 
2.7.3 事件(event) 37 
2.7.4 菜单(menu) 39 
2.7.5 主题(theme) 41 
2.7.6 对话框(dialog) 42 
2.8 android图形界面 43 
2.8.1 画笔(paint) 43 
2.8.2 画布(canvas) 44 
2.8.3 基础几何图形 46 
2.8.4 常见图形变换 47 
2.9 android动画效果 50 
2.9.1 逐帧动画(frame animation) 50 
2.9.2 补间动画(tween animation) 51 
2.10 android开发环境 52 
2.10.1 开发环境的搭建 53 
2.10.2 首个android项目 58 
2.10.3 使用ddms调试工具 63 
2.11 小结 64 
第3章 php开发准备 65 
3.1 php开发基础 65 
3.1.1 php语言简介 65 
3.1.2 php语法简介 66 
3.1.3 php开发起步 68 
3.1.4 php面向对象编程 75 
3.1.5 php的会话 78 
3.2 php开发环境 80 
3.2.1 开发环境的搭建 80 
3.2.2 安装配置xampp 81 
3.2.3 管理apache 83 
3.2.4 管理mysql 84 
3.3 使用json通信 87 
3.4 常用php开发框架 88 
3.5 认识smarty模板引擎 90 
3.6 开发框架简介 93 
3.6.1 框架的特点和优势 94 
3.6.2 框架的基础目录结构 94 
3.6.3 框架mvc思路讲解 97 
3.6.4 框架mvc实例分析 99 
3.7 小结 108 
第二篇 实 战 篇 
第4章 实例产品设计 109 
4.1 为何选择微博 109 
4.2 开发前的准备 110 
4.2.1 选择开发模式 110 
4.2.2 了解项目策划 111 
4.2.3 了解原型设计 112 
4.3 功能模块设计 112 
4.4 应用界面设计 114 
4.5 应用架构设计 115 
4.6 通信协议定义 116 
4.7 数据库结构设计 118 
4.8 小结 120 
第5章 程序架构设计 121 
5.1 服务端程序架构设计 121 
5.1.1 基础框架设计 122 
5.1.2 调试框架设计 127 
5.1.3 核心类库设计 130 
5.1.4 服务端的mvc与soa 136 
5.2 客户端程序架构设计 136 
5.2.1 基础框架设计 137 
5.2.2 核心类包设计 138 
5.2.3 android应用的mvc 142 
5.3 客户端界面架构设计 142 
5.3.1 界面框架设计 143 
5.3.2 主要界面设计 144 
5.4 小结 146 
第6章 服务端开发 147 
6.1 开发入门 147 
6.1.1 接口程序开发 147 
6.1.2 调试框架开发 151 
6.1.3 生成接口文档 155 
6.2 验证接口 156 
6.2.1 用户登录接口 156 
6.2.2 用户登出接口 160 
6.3 用户接口 162 
6.3.1 新建用户接口 162 
6.3.2 更新用户信息接口 164 
6.3.3 查看用户信息接口 165 
6.3.4 添加粉丝接口 167 
6.3.5 删除粉丝接口 171 
6.4 微博接口 172 
6.4.1 发表微博接口 172 
6.4.2 查看微博接口 174 
6.4.3 微博列表接口 176 
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Lenovo reveals new color option for the 2024 Legion Y700 gaming tablet Lenovo reveals new color option for the 2024 Legion Y700 gaming tablet Sep 29, 2024 am 06:05 AM

Lenovo is gearing up to launch the 2024 Legion Y700 on September 29 in China. This new Android gaming tablet will be going against the RedMagic Nova, and the company has already confirmed almost all the specs of the device. Now, hours before the full

See all articles