摘要:
在service中弹出toast,需要使用handler,1 handler.post(new Runnable() {2 @Override3 public void run() {4 Toast.makeText(this, "重启服务", 1).show... 阅读全文
posted @ 2015-08-25 16:29
晕菜一员
阅读(14136)
评论(0)
推荐(0)
摘要:
1 // The standard idiom for calling the wait2 synchronized(sharedObject) {3 while(condition){4 sharedObject.wait();// Releases lock... 阅读全文
posted @ 2015-08-25 10:37
晕菜一员
阅读(485)
评论(0)
推荐(0)

浙公网安备 33010602011771号