tag:blogger.com,1999:blog-3402539703993479534.post898774032867692468..comments2023-10-25T15:28:35.064+08:00Comments on ysl 的程式天堂 - Android 應用開發 ‧ 研究 ‧ 與諮詢: 誰有用過 FileObserver ?Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3402539703993479534.post-33111915906346785912012-09-09T16:33:17.963+08:002012-09-09T16:33:17.963+08:00可以請問一下,我嘗試使用file monitor監控 /proc/net/tcp 想讀取netsta...可以請問一下,我嘗試使用file monitor監控 /proc/net/tcp 想讀取netstat的狀態,但似乎fileObserver無法監控到這個檔案的變化pippenhttps://www.blogger.com/profile/15090035971957164255noreply@blogger.comtag:blogger.com,1999:blog-3402539703993479534.post-9763620157638363592009-02-20T11:26:00.000+08:002009-02-20T11:26:00.000+08:00感謝 XiaoA 提供的資訊,看來用靠 inotify 實現的 FileObserver ,應該在效...感謝 XiaoA 提供的資訊,看來用靠 inotify 實現的 FileObserver ,應該在效能上,比 Thread polling 好很多才對。samluhttps://www.blogger.com/profile/15545436503686128783noreply@blogger.comtag:blogger.com,1999:blog-3402539703993479534.post-62097292091762971182009-02-18T01:40:00.000+08:002009-02-18T01:40:00.000+08:00看了一下source code底層應該是用 inotify 去實作的這裡有幾篇inotify 的介紹...看了一下source code<BR/>底層應該是用 inotify 去實作的<BR/>這裡有幾篇inotify 的介紹可以參考一下<BR/>http://www.ibm.com/developerworks/linux/library/l-inotify.html<BR/>http://www.ibm.com/developerworks/linux/library/l-inotify.htmlAnonymoushttps://www.blogger.com/profile/16481886239568019946noreply@blogger.com