1.在使用Handler發(fā)消息的時(shí)候,在TimerTask的run方法中,每執(zhí)行一次run方法,就發(fā)一次,遇到的錯(cuò)誤為:The specified message queue synchronization barrier token has not been posted or has already been removed.
解決辦法為:在UI線程的Handler的handleMessage方法中,更新UI之前加入this.obtainMessage();即可。
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注