如何在andriod app中使用WatchService [英] How to use WatchService in andriod app
本文介绍了如何在andriod app中使用WatchService的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在导入java.nio。*;包使用WatchService。但它的错误。那么如何才能在我的应用程序中使用watchservice?
WatchService无法解析为我正在这样的类型。
解决方案
您没有发布代码,而是通过查看文档 [ ^ ],所需的include似乎是java.nio.file.WatchService,我认为它不包含在java.nio中。 *
I am importing java.nio.*; package to use WatchService. But its getting errors. So how can I use watchservice in my app?
"WatchService cannot be resolved to a type" like this i am getting .
解决方案
You didn't post code, but from looking at the documentation[^] on it for SE7, the required include seems to be java.nio.file.WatchService which I don't think is included in java.nio.*
这篇关于如何在andriod app中使用WatchService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文