Hi,
I am new to Android but I am familiar with Linux.
If you open the file you are obsserving it can not be really deleted
until you close it. So if you get a delete event, you could backup the
file and then just close it.
I think it is the only way to accomplish it. If you could be notified
*before* delete, the file will be deleted immediately after that so
you would not be able to backup it unless you opened it before.

I think it should work.

Good luck!
Elena


On Jul 23, 9:38 pm, wonglik <[email protected]> wrote:
> Hi
>
> I am playing withFileObserver. I see it can react on someone ,
> deleting , reading etc   given file. The problem I face is that it
> notify after event. Is there an option to get information before
> event.  For example I would like to backup file x before its deleted .
> WithFileObserverI would just get information that file was
> deleted ... Is it possible to access file just before event occur ,
> like just before deleting or open ?
>
> regards
> w
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to