摘要: 一、开启新线程?123456newThread(newRunnable(){publicvoidrun(){Thread.sleep(XXXX);handler.sendMessage();//告诉主线程执行任务}}).start二、利用定时器?12345678TimerTask task =newTimerTask(){publicvoidrun(){//execute the task}};Timer timer =newTimer();timer.schedule(task, delay);//http://www.android-study.com/jichuzhishi/536.ht 阅读全文
posted @ 2013-04-25 19:22 linsen@java 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 首先来讲一下step into step over step return的区别:step into就是单步执行,遇到子函数就进入并且继续单步执行;(F5)step over是在单步执行时,在函数内遇到子函数时不会进入子函数内单步执行,而是将子函数整个执行完再停止,也就是把子函数整个作为一步。(F6)step return就是单步执行到子函数内时,用step return就可以执行完子函数余下部分,并返回到上一层函数。(F7)step into:进入子函数step over:越过子函数,但子函数会执行step return:跳出子函数最基本的操作是:1, 首先在一个java文件中设断点,然后运 阅读全文
posted @ 2013-04-25 14:30 linsen@java 阅读(183) 评论(0) 推荐(0) 编辑