码迷,mamicode.com
首页 >  
搜索关键字:called    ( 1945个结果
Can't create handler inside thread that has not called Looper.prepare()
最近做项目查看bugly上崩溃日志遇到这样的一个问题:Can't create handler inside thread that has not called Looper.prepare() java.lang.RuntimeException Can't create handler ins ...
分类:其他好文   时间:2016-03-28 13:20:25    阅读次数:282
python之装饰器
装饰器:本身是一个函数,用于装饰其他函数。作用:增强被装饰函数的功能。装饰器通常把其他函数作为参数,增加其功能。例1:函数不需被调用,直接运行>>>defdeco(func):######定义装饰器函数,func函数为参数...print(‘beforemyfunc()called‘)...func()#######调用原..
分类:编程语言   时间:2016-03-26 09:02:37    阅读次数:169
Android中的Parcelable接口和Serializable用法和区别
Parcelable接口: Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must also have a static field called CREATOR, which is...
分类:移动开发   时间:2016-03-24 11:30:44    阅读次数:189
Sicily 1027 MJ,Nowhere to Hide
Time Limit: 1 secs, Memory Limit: 32 MB On BBS, there is a familiar term called MJ (short for MaJia), which means another BBS ID of one person besides
分类:其他好文   时间:2016-03-23 06:05:48    阅读次数:279
安卓中onBackPressed ()方法的使用
一、onBackPressed()方法的解释 这个方法放在 在安卓API中它是这样解释的: public void onBackPressed () Called when the activity has detected the user's press of the back key. The
分类:移动开发   时间:2016-03-22 20:39:13    阅读次数:692
codeforces 653C C. Bear and Up-Down(乱搞题)
题目链接: C. Bear and Up-Down The life goes up and down, just like nice sequences. Sequence t1,?t2,?...,?tn is called nice if the following two conditions
分类:其他好文   时间:2016-03-21 13:52:43    阅读次数:158
android源码解析之(三)-->HandlerThread
HandlerThread是个什么东西?查看类的定义时有这样一段话:Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called.意思就是说:这个类的作用是创建一...
分类:移动开发   时间:2016-03-20 18:04:54    阅读次数:200
337_House Robber III
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou
分类:其他好文   时间:2016-03-20 17:57:45    阅读次数:142
IOS 杂笔-8(loadView、viewDidLoad、viewWillAppear、viewDidAppear等简介)
loadView; This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.这是当他们没有正在使用ni
分类:移动开发   时间:2016-03-20 14:40:29    阅读次数:170
lightoj 1319 - Monkey Tradition (中国剩余定理)
In 'MonkeyLand', there is a traditional game called "Bamboo Climbing". The rules of the game are as follows: 1) There are N monkeys who play this game
分类:其他好文   时间:2016-03-19 22:48:34    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!