public?class?Download?implements?Serializable?{
????private?static?final?int?START?=?1;?????????????????//?开始下载
????private?static?final?int?PUBLISH?=...
分类:
移动开发 时间:
2014-09-04 17:14:50
阅读次数:
285
目前POI的最新发布版本是3.10_FINAL.该版本保护的jar包有:
Maven artifactId
Prerequisites
JAR
poi
commons-logging, commons-codec, log4j
poi-version-yyyymmdd.jar
poi-scratchpad
poi
...
分类:
编程语言 时间:
2014-09-04 17:04:09
阅读次数:
311
/** * * @param s * @return 获网页标题 */ public String getTitle(final String s) { String regex; String title = ""; final List list = new ArrayList(...
分类:
其他好文 时间:
2014-09-04 16:37:29
阅读次数:
164
自定义checkbox中的勾选框图标,这次因为想偷懒,图标弄的大了些,然后一系列的问题就都引出来了。
1、图标比checkbox的layout_height高,看不见了。
很吐血吧,CompoundButton中的源码可以看到下面代码
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final Dra...
分类:
移动开发 时间:
2014-09-04 11:49:39
阅读次数:
232
//关于http 需要两个jar包 httpclient-4.0.jar httpcore-4.0.1.jar
private static final HttpClient httpClient = new DefaultHttpClient();
try {
//获得密匙库
KeyStore trustStore = KeyStore.getInstance("jks");
...
分类:
编程语言 时间:
2014-09-04 09:45:28
阅读次数:
347
自定义GSON类 1 public class GsonRequest extends Request { 2 private final Gson mGson = new Gson(); 3 private final Class mClazz; 4 private fin...
分类:
Web程序 时间:
2014-09-04 01:25:47
阅读次数:
354
对于Android 异常退出,主要是用到了 接口Thread.UncaughtExceptionHandler
public class ErrorReport implements Thread.UncaughtExceptionHandler{
public static final String TAG = "GouMinErrorReport";
priv...
分类:
移动开发 时间:
2014-09-03 19:54:57
阅读次数:
202
public class ResponseContextHolder { private static final ThreadLocal responseHolder = new NamedThreadLocal( "Response"); public static void resetRe.....
分类:
其他好文 时间:
2014-09-03 16:31:36
阅读次数:
592
final Dialog customDialog = new Dialog(this);customDialog.setTitle(R.string.attention);customDialog.setContentView(R.layout.connectionview);ImageView ...
分类:
其他好文 时间:
2014-09-03 12:32:36
阅读次数:
192
环境:操作系统Centos6.5X86_64(final)LVS-Master:192.168.2.32LVS-Backup:192.168.3.31VIP:192.168.2.33Web2:192.168.2.29Web4:192.168.2.301、安装LVS軟件(分别在LVS-Master和LVS-Backup中)1.1.查看是否有IPVS模块,LVS是Linux标准内核的一部分,直接被编译在内核中![root@L..
分类:
其他好文 时间:
2014-09-03 02:48:36
阅读次数:
470