Click here to Skip to main content
15,902,735 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am doing a application which is similar dumpster. I am using fileobserver to get notifications , but the fileobserver notifying me whenever deletion completed. I want to get the notification before deletion itself, then only i can do app like recycle bin. Some body suggest me use "logger".What is the main use of logger in android ? By using logger is it possible to get notifications ? If it is how please tell me ?
Posted

1 solution

For your main Question
Follow -
  1. Get notification before deleting the file in Android[^]
  2. Get notification using file observer[^]
    Quote:
    Answer
    No, it’s not. The observer will simply tell you what’s already happened. The only way to intercept the deletion before it happens is to write either a device driver to be loaded on the system or a C library that’s started with the program that’s deleting the file.


For Logger in Android
Refer - Logger[^]
Quote:
Loggers are used to log records to a variety of destinations such as log files or the console. They use instances of Handler[^] to actually do the destination-specific operations.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900