摘要: // Setup to send message again in normal period (+ a little jitter) osal_start_timerEx( SampleApp_TaskID, SAMPLEAPP_SEND_PERIODIC_MSG_EVT, ... 阅读全文
posted @ 2015-10-21 15:20 云中鹤5786 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 本博文转载自http://blog.csdn.net/xiaanming/article/details/9750689 // 含有3个线程的线程池 private static final ExecutorService executorSocket = Executors ... 阅读全文
posted @ 2015-10-21 15:18 云中鹤5786 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1、声明机制 // 单个线程机制测试 private Handler mHandler; Runnable mBackgroundRunnable; private boolean mRunning = true; 2、在Oncreate()中启动 //单个线... 阅读全文
posted @ 2015-10-21 15:12 云中鹤5786 阅读(277) 评论(0) 推荐(0) 编辑