1.当我们在new 自己的异步任务时候会初始化实例化两个类WorkerRunnable ,FutureTask,并且重写WorkerRunnable call方法和FutureTask的done方法。
2.call方法主要执行子类复写的doInBackground,然后调用 postResult显示数据,在postResult里面去调用handler发送数据然后调用finish方法去调用子类的onPostExecute方法,这个时候我们就可以在自己复写的onPostExecute进行ui更新...
分类:
其他好文 时间:
2014-08-01 19:46:02
阅读次数:
351
Ubuntu 下使用BeagleBone Black(一) planck@planck-Ubuntu:/dev$ sudo apt-get install ckermit [sudo] password for planck: Reading package lists... Done Buildi...
分类:
其他好文 时间:
2014-08-01 04:53:51
阅读次数:
978
Activity.finish():Call this when your activity is done and should be closed. 在你的activity动作完成的时候,或者Activity需要关闭的时候,调用此方法。 当你调用此方法的时候,系统只是将最上面的Acti...
分类:
其他好文 时间:
2014-07-29 21:12:32
阅读次数:
214
如果你不需要cephfs,MDS就成了多余的。为了提高性能,可以把MDS卸载掉。 首先停止所有的MDS daemon: $ sudo service ceph stop mds
=== mds.0 ===
Stopping Ceph mds.0 on server-3...kill 1190...done 然后在c...
分类:
其他好文 时间:
2014-07-29 16:16:20
阅读次数:
401
#!/bin/bash
#
#Judgingtheelementisafileorafolder
if[$#-lt1];then
echo"ERROE!!Usage:ckfile.shARGS1[ARGS2...]"
exit4
fi
foriin`seq1$#`
do
if[-f$1];then
echo$1isacommomfile
elif[-d$1];then
echo$1isadirectory
else
echo"$1isnotexsitorunknown!"
fi
shift
done知识..
分类:
其他好文 时间:
2014-07-29 16:01:19
阅读次数:
184
在开发中我们会遇到多重ajax调用的情况,这时比较适宜用$.when方法,无需再为每次调用请求分别定义一个回调。使用实例:varserverData={};varget1=$.get(‘/1‘).done(function(result){serverData[‘1‘]=result;});varget2=$.get(‘/2‘).done(function(result){serverData[‘2‘]=re..
分类:
Web程序 时间:
2014-07-29 15:26:00
阅读次数:
264
Easier Done Than Said?
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7554 Accepted Submission(s): 3737
Problem Description
Pas...
分类:
其他好文 时间:
2014-07-29 14:42:28
阅读次数:
308
/*
Easier Done Than Said?
Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords
that are easy to remember (like buddy), but such passwords are often insecure. Some...
分类:
其他好文 时间:
2014-07-29 14:40:28
阅读次数:
288
/*
Easier Done Than Said?
Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords
that are easy to remember (like buddy), but such passwords are often insecure. Some...
分类:
其他好文 时间:
2014-07-29 14:39:48
阅读次数:
302