[太陽花學運] 2014年3月18日 台灣人民佔領立法院行動 反對黑箱服貿

圖片
繼台灣公民記者JO1YNN在美國有線電視新聞網CNN的 iReport ( Taiwan Parliament Occupied by protesters 1st time in History )上。報導台灣「318人民佔領立法院行動」首次佔領立法院議場世界各大重要外電媒體紛紛加以報導。 Arys Chien's status update .: 【 為何學生要佔領立法院,反對黑箱服貿?】 我知道有的朋友平常沒 留意,現在一時看不太懂;我試著用另一種方式簡單說明看看。   會計偷偷抱著公司所有的資產,要去抵押借高利貸。 老闆發現了,趕緊說:「不行啊那是高利貸!」 會計:「我是為公司好!」 老闆:「那起碼告訴我,是哪家高利貸、多少錢、利息怎麼算?」 會計:「我先去借,你之後會慢慢感受到!」 老闆:「那也讓我們開個會討論吧!」 會計:「我趁你不在的時候發開會通知,你沒來,所以就算通過了。 」 老闆要攔會計、會計把自己座位鎖起來,老闆只好請人來包圍會計的 座位,並且設法強行進入;進入後亂翻會計抽屜,想找到公司資產。   以上。   會計 = 政府 老闆 = 台灣人民 高利貸 = 服貿 (沒錯,政府是人民雇用來辦事的職員,看薪水哪裡來的就很清楚了 ) (高利貸不是不能借,只是不能這樣搞啊......)  ( 來源: 我是台灣人粉絲團  )

How to trace ANR


How to trace ANR problem !

What Triggers ANR?

In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display the ANR dialog for a particular application when it detects one of the following conditions:
  • No response to an input event (e.g. key press, screen touch) within 5 seconds
  • BroadcastReceiver hasn't finished executing within 10 seconds



How to investigate an ANR 

http://stackoverflow.com/questions/704311/android-how-do-i-investigate-an-anr


An ANR happens when some long operation takes place in the "main" thread. This is the event loop thread, and if it is busy, Android cannot process any further GUI events in the application, and thus throws up an ANR dialog.
Now, in the trace you posted, the main thread seems to be doing fine, there is no problem. It is idling in the MessageQueue, waiting for another message to come in. In your case the ANR was likely a longer operation, rather than something that blocked the thread permanently, so the event thread recovered after the operation finished, and your trace went through after the ANR.
Detecting where ANRs happen is easy if it is a permanent block (deadlock acquiring some locks for instance), but harder if it's just a temporary delay. First, go over your code and look for vunerable spots and long running operations. Examples may include using sockets, locks, thread sleeps, and other blocking operations from within the event thread. You should make sure these all happen in separate threads. If nothing seems the problem, use DDMS and enable the thread view. This shows all the threads in your application similar to the trace you have. Reproduce the ANR, and refresh the main thread at the same time. That should show you precisely whats going on at the time of the ANR

--

中文相關討論

淺談ANR及如何解決分析ANR 1
淺談ANR及如何解決分析ANR 2
淺談ANR及如何解決分析ANR 3


留言

本月熱門文章

水電冷氣行介紹---台北市中山區中原街90號的昇陽水電冷氣行‎—-就在福德宮對面,有保佑的喔!

水電五金材料行介紹---臺北市大安區和平東路2段72號1樓的鴻運水電五金--甚麼都賣甚麼都不奇怪, 開所配鎖也有服務喔~

新北市線上都更說明會,一起來改善現在的居住環境

總統候選人賴清德提補助私立大學學費 幫助學生減輕學費負擔 實現教育平權

Amazon/ AWS 領導力準則 14 Amazon Leadership Principles

推薦韓劇 機智的醫生生活 充滿友情的五人組 Mido and Falasol

檢視台灣網路創業的能量及2011年案例:5945呼叫師傅

GtkContainer 概念介紹

台灣科技業的創新能量在哪邊?