/* * Obtain the window manager and default display, which we will use to * find out the size of the device's display (in pixels) ...
分类:
移动开发 时间:
2015-01-07 14:32:31
阅读次数:
164
相信大家对于Android中的Handler是在为熟悉不过了,但是要知道,Handler就其本身而言只是一个壳子,真正在内部起到作用的是Message这个类,对于Message这个类,相信大家也不会陌生,正如大家经常用到的Message.obtain()的方法一样。但是大家又是否知道obtain()...
分类:
移动开发 时间:
2015-01-05 10:52:49
阅读次数:
225
相信大家对于Android中的Handler是在为熟悉不过了,但是要知道,Handler就其本身而言只是一个壳子,真正在内部起到作用的是Message这个类,对于Message这个类,相信大家也不会陌生,正如大家经常用到的Message.obtain()的方法一样。但是大家又是否知道obtain()...
分类:
移动开发 时间:
2015-01-04 09:50:38
阅读次数:
234
相信大家对于Android中的Handler是在为熟悉不过了,但是要知道,Handler就其本身而言只是一个壳子,真正在内部起到作用的是 Message这个类,对于Message这个类,相信大家也不会陌生,正如大家经常用到的Message.obtain()的方法一样。但是大家又是否 知道obtain...
分类:
移动开发 时间:
2014-12-30 01:45:01
阅读次数:
205
相信大家对于Android中的Handler是在为熟悉不过了,但是要知道,Handler就其本身而言只是一个壳子,真正在内部起到作用的是Message这个类,对于Message这个类,相信大家也不会陌生,正如大家经常用到的Message.obtain()的方法一样。但是大家又是否知道obtain()方法里面为我们做了哪些操作了,下面我就带领大家进行Message的王国,去一探究竟吧。
...
分类:
移动开发 时间:
2014-12-29 13:50:01
阅读次数:
196
Android为了线程安全,只允许在主线程中修改UI,如果想在子线程中更改UI,可以使用Handler.
用法一:
//在子线程中发送更新信息
Message msg = Message.obtain();
msg.what = 1;
Bundle data = new Bundle();
data.putString("sourceStr...
分类:
其他好文 时间:
2014-12-23 22:41:32
阅读次数:
206
typeof: The typeof operator is used to obtain the System.Type object for atype.运算符,获得某一类型的System.Type对象。Type t = typeof(int);GetType: Gets the Type of...
分类:
其他好文 时间:
2014-12-17 18:10:53
阅读次数:
111
最近在Web环境下使用mybatis,在Winform和服务模式下运行(多线程访问数据库)没有问题。但是在IIS的环境中出现了一个WebSessionStore: Could not obtain reference to HttpContext 异常。之前有听说过mybatis在多线程模式...
分类:
编程语言 时间:
2014-12-11 11:48:54
阅读次数:
390
Table of ContentsIntroductionDownload a Java Development Kit (JDK) version 6Install Apache Ant 1.8.1 or laterCheckout or obtain the source code for To...
分类:
其他好文 时间:
2014-12-10 15:47:24
阅读次数:
123
Feedback — Problem Set 7Question 1CoreThree players together can obtain1to share, any two players can obtain0.8, and one player by herself can obtain ...
分类:
其他好文 时间:
2014-12-06 18:11:32
阅读次数:
609