如何检测在Android的文件或文件夹的变化? [英] How to detect file or folder changes in Android?

查看:103
本文介绍了如何检测在Android的文件或文件夹的变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能发现在Android中的文件夹的变化?我的意思是,当检测到文件被删除或更改,知道至极的应用程序在做这些?在Windows中,有系统事件对于这一点,它不是necesary永久观看文件来检测的变化。这是非常重要的是要知道哪些应用程序在做的更改。

解决方案
  

时可以检测的android文件夹的变化?

您可以使用<一个href="http://developer.android.com/reference/android/os/FileObserver.html"><$c$c>FileObserver找出当文件被修改。

  

时非常重要的是知道至极应用程序正在做的修改。

这是信息不可用。

Is it possible to detect folder changes in Android? I mean detect when files are deleted or changed and know wich application are doing these? In Windows you have system events for this, it's not necesary to permanently watch the files to detect changes. It's very important to know which application is doing the changes.

解决方案

Is possible to detect folder changes in android?

You can use FileObserver to find out when files are modified.

Is very important to know wich application is doing the changes.

That information is not available.

这篇关于如何检测在Android的文件或文件夹的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆