Robotium判断测试结果的方法主要有三类:is、search、assert。assert方法除了Robotium API,还有Junit中的所有断言方法。Junit3和Junit4中的断言不再这里提。void assertCurrentActivity (String message, Cl.....
分类:
其他好文 时间:
2015-11-24 14:32:00
阅读次数:
158
设计模式 首先要解释一下什么是延迟加载,延迟加载就是等到真真使用的时候才去创建实例,不用时不要去创建。从速度和反应时间角度来讲,非延迟加载(又称饿汉式)好;从资源利用效率上说,延迟加载(又称懒汉式)好。下面看看几种常见的单例的设计方式:第一种:非延迟加载单例类Java代码 public cl...
分类:
编程语言 时间:
2015-11-23 16:15:53
阅读次数:
223
效果图: 这里的后台管理用的是duducat,大家可以去百度看说明。图片,文字都在duducat后台服务器上,可以自己修改的。(PS:图片这里是随便找的)http://www.duducat.com/我就直接上代码了,如果有不懂的可以联系我。MainActivity.javapublic cl...
分类:
移动开发 时间:
2015-11-20 21:39:39
阅读次数:
329
Android开发中,我们常常遇到热更新这个概念,而这个热更新具体是怎么实现的呢?今天在网上看到一个大神分享的热更新相关实现原理和实现代码,感觉灰常不错,分享给广大码农盆友look look 。ClassLoader Android的基础语言是Java,而Java在运行时加载对应的类是通过Cl...
分类:
移动开发 时间:
2015-11-20 17:23:07
阅读次数:
238
题目:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl...
分类:
其他好文 时间:
2015-11-20 10:40:16
阅读次数:
120
using System;using System.Collections.Generic;class Person{ public int Age; public static explicit operator int(Person p) { return p.Age; }}public cl....
分类:
其他好文 时间:
2015-11-17 10:53:02
阅读次数:
138
引用http://www.cnblogs.com/xia520pi/p/3914964.html1、运行模式关于PHP目前比较常见的五大运行模式:1)CGI(通用网关接口 / Common Gateway Interface)2)FastCGI(常驻型CGI / Long-Live CGI)3)CL...
分类:
Web程序 时间:
2015-11-17 06:50:56
阅读次数:
162
打开安装目录下的*VSDIR*\VC\bin可以看到一系列的可执行程序.exe和批处理文件,这些就是VS2010构建、编译、链接时要用到的工具。看一下几个主要的工具:
cl.exe:编译程序
link.exe:链接程序
lib.exe:加载lib库的程序
nmake.exe:用makefile进行构建、编译的工具...
分类:
编程语言 时间:
2015-11-15 12:16:15
阅读次数:
215
匿名内部类的格式:new 父类或者接口() { 覆盖父类方法或者定义子类成员}.方法; 1 abstract class Demo2 { 2 abstract void show(); 3 } 4 5 class Outer2 { 6 int num =4; 7 // cl...
分类:
其他好文 时间:
2015-11-15 12:11:18
阅读次数:
141
Factory Method Design Pattern ??? 1.Intent ???????? <1> Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a cl...
分类:
其他好文 时间:
2015-11-13 17:11:25
阅读次数:
348