嘿 我真的好想你现在窗外面又开始下着雨眼睛干干的有想哭的心情不知道你现在到底在哪里
分类:
其他好文 时间:
2014-07-22 22:59:13
阅读次数:
158
转自:http://blog.csdn.net/hpoi/article/details/4629065 Android activity的生命周期
activity类处于android.app包中,继承体系如下: 1.java.lang.Object 2.android.content.Conte...
分类:
移动开发 时间:
2014-05-05 21:51:21
阅读次数:
344
GC.Collect()GC.WaitForPendingFinallizers()GC.KeepAlive尽量不要new很大的Object不要频繁的new生命周期很短的Object,这样会导致很多内存碎片引起频繁的压缩
分类:
其他好文 时间:
2014-05-05 21:47:03
阅读次数:
448
Collection接口
Collection是最基本的集合接口,一个Collection代表一组Object,即Collection的元素(Elements)。一些
Collection允许相同的元素而另一些不行。一些能排序而另一些不行。Java SDK不提供直接继承自Collection的类,....
分类:
其他好文 时间:
2014-05-03 23:27:11
阅读次数:
350
Playback control of audio/video files and streams is managed as a state machine. The following diagram shows the life cycle and the states of a MediaPlayer object driven by the supported playback cont...
分类:
移动开发 时间:
2014-05-03 21:36:21
阅读次数:
568
介绍了JavaScript中创建对象的5种方式以及实现继承的5种方式,探讨了动态语言类型判定的鸭子判定法,讨论了JavaScript中的Object以及全局对象...
分类:
编程语言 时间:
2014-05-03 21:27:28
阅读次数:
349
//当属性和方法特别多时,编写起来不是很方便,可以通过json的格式来编写
//由于原型重写,而且没有通过Person.prototype来指定,此时的constructor不会再指向Person而是指向Object
//如果constructor真的比较重要,可以在json中说明原型的指向
function Person(){
}
Person.prototype = {...
分类:
Web程序 时间:
2014-05-03 21:02:22
阅读次数:
403
使用MediaRecorder录制音频步骤:
MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
re...
分类:
移动开发 时间:
2014-05-03 20:51:30
阅读次数:
424
BeautifulSoup 善于网页数据分析
请参考: http://www.crummy.com/software/BeautifulSoup
例如: 抓取CSDN首页极客头条内容 soup.py
import urllib2, re
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen("http://gee...
分类:
编程语言 时间:
2014-05-03 15:31:42
阅读次数:
401