在android中解释记录器 [英] Explain about logger in android

查看:54
本文介绍了在android中解释记录器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个类似垃圾箱的应用程序。我正在使用fileobserver来获取通知,但是当删除完成时,fileobserver会通知我。我想在删除之前获取通知,然后只有我可以像回收站那样做app。有人建议我使用记录器。在android中记录器的主要用途是什么?通过使用记录器可以获得通知吗?如果是这样请告诉我?

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 ?

推荐答案

为您的主要问题

关注 -

For your main Question
Follow -
  1. 在Android中删除文件之前获取通知 [ ^ ]
  2. 使用文件观察者获取通知 [ ^ ]

  1. Get notification before deleting the file in Android[^]
  2. Get notification using file observer[^]
引用:

答案

不,不是。观察者只会告诉你已发生的事情。在删除之前拦截删除的唯一方法是编写要加载到系统上的设备驱动程序或者使用删除文件的程序启动的C库。

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.





适用于Android的记录器

推荐 - Logger [ ^ ]


For Logger in Android
Refer - Logger[^]

引用:

记录器用于将记录记录到各种目的地,例如日志文件或控制台。他们使用处理程序的实例[ ^ ]实际执行特定于目标的操作。

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.


这篇关于在android中解释记录器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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