上一页 1 2 3 4 5 6 ··· 10 下一页
  2014年8月12日
摘要: 1、Connection接口1 package com.xinye.test.pool3;2 3 public interface Connection {4 void set(Object obj);5 void get();6 }2、Connection实现 1 package ... 阅读全文
posted @ 2014-08-12 20:28 wangwangheng 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1、Intents and Intent Filters(意图和意图过滤器) 1.0、Intents and Intent Filters(意图和意图过滤器) AnIntentis a messaging object you can use to request an action from anotherapp component. Although intents facilitate... 阅读全文
posted @ 2014-08-12 17:00 wangwangheng 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: 二、App Components(应用程序组件) 0、概述 App Components Android's application framework lets you create rich and innovative apps using a set of reusable components. This section explains how you can build the ... 阅读全文
posted @ 2014-08-12 16:48 wangwangheng 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1、对象池技术并没有限制说只能创建一个对象,而且这种技术同样适用于创建固定数量的对象,然而,这种情况下,你就得面对如何共享对象池里的对象这种问题。当创建多个对象会的代价会很大的时候,可以考虑使用对象池技术,目前已有的技术比如:线程池技术、数据库连接池技术2、UML图(astah/jude)下载地址:... 阅读全文
posted @ 2014-08-12 16:37 wangwangheng 阅读(10525) 评论(0) 推荐(0) 编辑
摘要: 1、主要解决的问题:客户端代码和实现代码的解耦合,代理类对实现类打理一切 真正干活的那个类是要对客户端隐藏的 代理类和实现类一般都会实现同一个接口(也可以不这么干) 代理设计模式(Proxy)和状态模式(State)很类似,代理模式是状态模式的一种特例 一个代理模式下的代理类一般只对应一个实现类;而... 阅读全文
posted @ 2014-08-12 15:53 wangwangheng 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1、单例模式是“对象池模式”的一种特殊情况2、单例模式要解决的问题是:创建对象所付出的代价比较大 没有必要创建多个问题 提供一个全局访问点,就像C中的全局变量一样3、常见的两种实现机制3.1、常见实现一:只要加载Class文件,就创建对象 1 package com.xinye.test.singl... 阅读全文
posted @ 2014-08-12 15:10 wangwangheng 阅读(209) 评论(0) 推荐(0) 编辑
  2014年8月6日
摘要: 图片和mmap下载地址:http://pan.baidu.com/s/1jGqUpxk 阅读全文
posted @ 2014-08-06 11:50 wangwangheng 阅读(798) 评论(0) 推荐(1) 编辑
  2014年7月11日
摘要: 发布的博客,排版太不行了,整理下发在百度盘上了:第一部分:Introduction(入门) 0、Introduction to Android(引进到Android) 1、Application Fundamentals(应用程序基础) 2、Device Compatibility(设备... 阅读全文
posted @ 2014-07-11 23:12 wangwangheng 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 3、System Permissions(系统权限)Android is a privilege-separated operating system, in which each application runs with a distinct system identity (Linux user ID and group ID). Parts of the system are also ... 阅读全文
posted @ 2014-07-11 23:02 wangwangheng 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: 2、Device Compatibility(设备兼容性)Android is designed to run on many different types of devices, from phones to tablets and televisions. As a developer, the range of devices provides a huge potential audi... 阅读全文
posted @ 2014-07-11 22:58 wangwangheng 阅读(980) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页