码迷,mamicode.com
首页 >  
搜索关键字:final finalize finally    ( 12297个结果
android中checkbox的padding引发的问题
自定义checkbox中的勾选框图标,这次因为想偷懒,图标弄的大了些,然后一系列的问题就都引出来了。 1、图标比checkbox的layout_height高,看不见了。 很吐血吧,CompoundButton中的源码可以看到下面代码 protected void onDraw(Canvas canvas) { super.onDraw(canvas); final Dra...
分类:移动开发   时间:2014-09-04 11:49:39    阅读次数:232
JAVA实现https单向认证
//关于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
Volley 结合GSON或FastJson用法
自定义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崩溃捕获
对于Android 异常退出,主要是用到了 接口Thread.UncaughtExceptionHandler public class ErrorReport implements Thread.UncaughtExceptionHandler{ public static final String TAG = "GouMinErrorReport"; priv...
分类:移动开发   时间:2014-09-03 19:54:57    阅读次数:202
ThreadLocal<HttpServletResponse>
public class ResponseContextHolder { private static final ThreadLocal responseHolder = new NamedThreadLocal( "Response"); public static void resetRe.....
分类:其他好文   时间:2014-09-03 16:31:36    阅读次数:592
用Dialog 做自定义动画,加播放监听
final Dialog customDialog = new Dialog(this);customDialog.setTitle(R.string.attention);customDialog.setContentView(R.layout.connectionview);ImageView ...
分类:其他好文   时间:2014-09-03 12:32:36    阅读次数:192
LVS+Keepalived+http学习笔记
环境:操作系统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
HtmlParser 2.0 中文乱码问题
对于HTMLParser 2.0工具包我们需要修改其中的Page.java文件使其适用中文的html文件分析。 主要是把protected static final String DEFAULT_CHARSET = "ISO-8859-1";修改成protected static final Str...
分类:Web程序   时间:2014-09-02 17:15:25    阅读次数:249
Jessica's Reading Problem
DescriptionJessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on ...
分类:其他好文   时间:2014-09-01 22:34:03    阅读次数:294
armstrong's programming erlang 2nd
Re: json handling map functions in erlang 17I have not read Joes final book on the matter (several drafts though) .. and I've told him, twice I think,...
分类:其他好文   时间:2014-09-01 19:26:03    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!