ogre 程序设计文档chm
ogre 程序设计 chm 格式
很全的入门中文文档
Android A Programmer's Guide(Android程序员向导) 英文版
英文原版 Android A Programmer's Guide
共十二章,系统的介绍了Android手机开发步骤和相关知识,另外也是学习英语的好资料!
1 What Is Android? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Brief History of Embedded Device Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Open Handset Alliance and Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Introduction to Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Downloading and Installing Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Why Eclipse? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Downloading and Installing the JRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Downloading and Installing Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3 Downloading and Installing the Android SDK . . . . . . . . . . . . . . . . . . . . . . . 21
Downloading the Android SDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Downloading and Installing the Android Plugin for Eclipse . . . . . . . . . . . . . . . . . . . . . . 24
Configuring the Android Plugin for Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4 Exploring the Android SDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
What Is in the Android SDK? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Android Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Android Samples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Try This: Run the API Demos Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . 41
Android Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Application Life Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Standard ASP Application Life Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Android Application Life Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5 Application: Hello World! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Creating Your First Android Project in Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Examining the Android-Created Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
AndroidManifest.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Referenced Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Hello World! Again . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Hello World! Using an Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Hello World! Code-Based UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Hello World! XML-Based UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Try This: Use TextView and ImageView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6 Using the Command-Line Tools and the Android Emulator . . . . . . . . . . . . 83
Creating a Shell Activity Using the Windows CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Running the ActivityCreator.bat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
The Project Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Creating the Hello World! Activity in the Windows CLI . . . . . . . . . . . . . . . . . . . . . . . . 95
Editing the Project Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Adding the JAVA_HOME Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Compiling and Installing the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Hello World! on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Configuring the PATH Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Try This: Create an Image-Based Hello World! in the CLI . . . . . . . . . . . . . . . . . . . 115
7 Using Intents and the Phone Dialer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
What Are Intents? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Using the Dialer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Placing a Call from Your Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Adding the Intent to Your Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Editing Activity Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Modifying the AndroidPhoneDialer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Adding a Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Implementing an EditText View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Try This: Modify the AndroidPhoneDialer Project . . . . . . . . . . . . . . . . . . . . . . . . . . 145
8 Lists, Menus, and Other Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Building the Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Intent Code for the .xml File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Intent Code for the .java File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Modifying the AndroidManifest.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Using the Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Creating the Activity for AutoComplete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
CheckBox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
EditText . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
RadioGroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Spinner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Try This: Modify More View Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
9 Using the Cell Phone’s GPS Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Using the Android Location-Based API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Creating a kml File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
What Is a track File? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Getting the nmea File in Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Getting the nmea File in Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Reading the GPS with the Android Location-Based API . . . . . . . . . . . . . . . . . . . . . . . . 212
Creating the AndroidLBS Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Passing Coordinates to Google Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Adding Zoom Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Try This: Toggling Between MapView’s Standard and Satellite Views . . . . . . . . . . 232
10 Using the Google API with GTalk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Configuring the Android Emulator for GTalk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Implementing GTalk in Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Creating the Activity’s Layout in the GoogleAPI.xml . . . . . . . . . . . . . . . . . . . . . 245
Adding Packages to GoogleAPI.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Implementing the View.OnClickListener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Compiling and Running GoogleAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Try This: Add a Settings Feature to Your GoogleAPI Activity . . . . . . . . . . . . . . . . 255
11 Application: Find a Friend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Creating a SQLite Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Creating a Custom Content Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Editing the strings.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Creating Your Content Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Creating the FindAFriend Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Editing AndroidManifest.xml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Creating the NameEditor Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Creating the LocationEditor Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Creating the FriendsMap Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Creating the FindAFriend Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Running the FindAFriend Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Try This: Real-Time Location Updating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
12 Android SDK Tool Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
Android Emulator Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Android Debug Bridge Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
spring3.x 权威开发指南中文版
目录如下:
序 .............................. VII
前言 ...............................IX
1 借助Spring 3.0实施Java EE 6
1.1 Java EE 6 编程模型讨论
1.1.1 Java EE 6够敏捷,No!
1.1.2 盘旋于具体与抽象之间
1.2 挖掘 Spring 3.0的架构价值
1.2.1 精耕细作于Java EE 6平台
1.2.2 面向Spring的 SpringSource Tool Suite集成开发工具
1.2.3 全面拥抱OSGi 4.2
1.2.4 开发者决定一切
1.3 下载及构建Spring 3.0
1.3.1 下载Spring 3.0正式发布版
1.3.2 基于SVN库持续构建Spring源码
1.4 小结
2 控制反转容器
2.1 DI及Spring DI概述
2.1.1 面向Java ME/Java SE的BeanFactory
2.1.2 面向Java EE的ApplicationContext
2.2 多种依赖注入方式
2.2.1 设值注入
2.2.2 构建器注入
2.2.3 属性注入
2.2.4 方法注入
2.3 候选的Autowiring策略
III
2.4 基于注解(Annotation)方式配置DI容器
2.5 资源操控
2.6 Spring表达式语言(SpEL)支持
2.7 将DI容器宿主到Web容器中
2.8 外在化配置应用参数
2.9 Spring受管 Bean的作用范围
2.10 Bean Validation集成支持
2.11 回调接口集合及触发顺序
2.12 <util/> 命名空间 .
2.13 值得重视的若干DI特性
2.13.1 depends-on特性
2.13.2 别名(Alias)
2.13.3 工厂Bean和工厂方法
2.13.4 <p/>命名空间
2.13.5 抽象和子Bean
2.14 小结 6
3 面向切面编程
3.1 AOP及Spring AOP基础
3.1.1 细说AOP
3.1.2 Spring AOP基础概念
3.2 AspectJ 6 初探
3.3 老式Spring AOP
3.4 基于@AspectJ的Spring AOP
3.5 基于<aop:config/>元素的AOP
3.5.1 巧用<aop:include/>元素
3.6 在 AspectJ 6应用中启用@Configurable注解
3.6.1 显式使用 AnnotationBeanConfigurerAspect切面
3.6.2 阐述@Configurable注解
3.6.3 通过META-INF/aop.xml(或aop-ajc.xml)控制启用的切面集合 ....... 22
IV
3.6.4 <context:spring- configured/>元素
3.6.5 初探<context:load-time-weaver/>元素
3.7 小结
4 DAO层集成支持
4.1 RDBMS持久化操作抽象支持
4.2 JDBC集成支持
4.2.1 JDBC最佳实践
4.3 事务集成支持
4.4 集成测试支持
4.5 在AspectJ 6应用中启用@Transactional注解 .
4.6 小结
5 Hibernate、JPA集成
5.1 Hibernate集成支持
5.2 JPA集成支持
5.3 智能处理Java EE容器中的装载期织入(LTW)
5.4 小结
6 O/X Mapping集成支持
6.1 O/X Mapping 集成支持
6.1.1 Marshaller及Unmarshaller接口
6.2 实践XMLBeans集成支持
6.2.1 借助Ant生成XMLBeans JAR
6.2.2 XmlBeansMarshaller实现类
6.2.3 <oxm:xmlbeans- marshaller/>元素
6.3 小结 .
7 集成Java EE其他容器服务
7.1 简化JNDI操作
7.2 集成EJB 3.1
7.3 线程池及任务调度集成支持
7.4 集成JMS
7.5 集成JavaMail
7.6 集成分布式操作
7.7 集成JMX
7.8 集成Java EE连接器架构
7.9 小结
8 Web层集成支持
8.1 Spring Web MVC 框架
8.2 Spring Portlet MVC框架
8.3 REST架构风格
8.4 小结
9 高级 Spring 3.0特性
9.1 优雅销毁DI容器
9.2 小结
10 附录A:安装及使用 SpringSource Tool Suite
10.1 获得SpringSource Tool Suite
10.2 安装 SpringSource Tool Suite
10.3 使用SpringSource Tool Suite
10.3.1 针对 Spring 3.0的支持
10.3.2 针对Spring Web Flow的支持
10.3.3 针对Spring Batch的支持
10.3.4 针对Spring Roo的支持
11 附录B:Spring 3.0内置的命名空间 .
11.1 <beans/> 命名空间
11.2 <context/>命名空间
11.3 <util/>命名空间
12 附录C:Spring Web Services
12.1 文档驱动的Web服务
12.2 面向OXM的Web服务实现策略
12.3 Web 服务安全
13 附录D:Spring Web Flow
13.1 流程致胜
13.2 探索Spring Web Flow
14 附录E:Spring BlazeDS Integration
14.1 Flex-RIA王者
14.2 简化BlazeDS的使用
14.3 深入到Spring BlazeDS Integration中
15 附录F:Spring Roo
15.1 快速研发之道
15.1.1 Spring Roo概述
15.2 Spring Roo架构哲学
15.3 深入到Spring Roo中 .
16 附录G:相关资料
16.1 图书
16.2 网站
java算法大全源码包
java算法大全源码包
有近100多种常见算法的源代码,是学习JAVA算法的难得资料。
PL/SQL 中文版
PL/SQL是一种高性能的基于事务处理的语言,能运行在任何ORACLE环境中,支持所有数据处理命令。通过使用PL/SQL程序单元处理SQL的数据定义和数据控制元素。
. PL/SQL支持所有SQL数据类型和所有SQL函数,同时支持所有ORACLE对象类型
. PL/SQL块可以被命名和存储在ORACLE服务器中,同时也能被其他的PL/SQL程序或SQL命令调用,任何客户/服务器工具都能访问PL/SQL程序,具有很好的可重用性。
. 可以使用ORACLE数据工具管理存储在服务器中的PL/SQL程序的安全性。可以授权或撤销数据库其他用户访问PL/SQL程序的能力。
. PL/SQL代码可以使用任何ASCII文本编辑器编写,所以对任何ORACLE能够运行的操作系统都是非常便利的
. 对于SQL,ORACLE必须在同一时间处理每一条SQL语句,在网络环境下这就意味作每一个独立的调用都必须被oracle服务器处理,这就占用大量的服务器时间,同时导致网络拥挤。而PL/SQL是以整个语句块发给服务器,这就降低了网络拥挤。
dtree(web 必备)
Javascripts Tree dtree
struts2标签库
Struts2.0 Tags
大小:1M
语言:中文
Visual SourceSafe 2005 汉化包
Visual SourceSafe 2005 汉化包
c#_help(pdf )
c#_help(pdf )
c#_help(pdf )
c#_help(pdf )
c#_help(pdf )