在android开发中,主线程不能进行耗时操作,所以我们经常把耗时操作放在子线程中进行,那么就需要子线程与主线程相互交流,就需要使用到handler.而在使用handler过程中,如果对handler使用不太熟练的话就偶尔会出现Can‘tcreatehandlerinsidethreadthathasnotcalledLooper.prepa..
分类:
其他好文 时间:
2016-08-26 15:45:36
阅读次数:
152
iOS开发基础知识--碎片42 iOS开发基础知识--碎片42 1:报thread 1:exc_bad_access(code=1,address=0x70********) 闪退 这种错误通常是内存管理的问题,一般是访问了已经释放的对象导致的,可以开启僵尸对象(Zombie Objects)来定位 ...
分类:
移动开发 时间:
2016-08-26 15:18:42
阅读次数:
265
1、博客园 2、CSDN 3、GitHub 4、开源中国 5、推酷 6、Stack Overflow 7、PHP100 8、W3CSchool 9、WEB前端开发(CSS88.com) 10、51CTO 11、极客学院 12、慕课网 13、腾讯教育 14、红黑联盟 15、IT之家 16、IT天空 1 ...
分类:
其他好文 时间:
2016-08-26 13:36:47
阅读次数:
168
new Thread(){ public void run() { try { //获得输入框内容 String phonenum=et_phone_num.getText().toString().trim(); String password=et_password.getText().toSt ...
分类:
Web程序 时间:
2016-08-26 12:22:17
阅读次数:
266
//获得网络数据 private void huodeshuju() { //这里是使用线程,已注释掉 /*new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLConnection urlConnectio ...
分类:
Web程序 时间:
2016-08-26 12:19:26
阅读次数:
171
//清单文件中添加权限 <uses-permission android:name="android.permission.INTERNET"/> new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLCon ...
分类:
Web程序 时间:
2016-08-26 12:10:31
阅读次数:
155
//获得网络数据 private void huodeshuju() { //这里是使用线程,已注释掉 /*new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLConnection urlConnectio ...
分类:
Web程序 时间:
2016-08-26 12:03:20
阅读次数:
169
转载自https://github.com/pzxwhc/MineKnowContainer/issues/25 包括:1. 栈溢出(StackOverflowError)2. 堆溢出(OutOfMemoryError:java heap space)3. 永久代溢出(OutOfMemoryErro ...
分类:
编程语言 时间:
2016-08-26 11:59:37
阅读次数:
560
2、queuequeue 模板类的定义在头文件中。与stack 模板类很相似,queue 模板类也需要两个模板参数,一个是元素类型,一个容器类型,元素类型是必要的,容器类型是可选的,默认为deque 类型。定义queue 对象的示例代码如下:queue q1;queue q2; queue 的基本操... ...
分类:
编程语言 时间:
2016-08-26 10:19:19
阅读次数:
175
[POJ1003]Hangover 试题描述 How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card ...
分类:
其他好文 时间:
2016-08-26 09:07:44
阅读次数:
208