Android DropBoxManager

DropBoxManager
在看Handler源码的时候,在同样的包下看到DropBoxManager这样一个类,因为在我的手机里,我记得有这样一个软件叫DropBox,
我看到过,但是没使用过,查了下,才知道这就是一个类似新浪网盘或者金山网盘的工具,或者类似印象笔记的东西,可以同步数据,
现在这样的产品太多了,多的我都用不过来了。
继续了解下,百度百科中的解释:
http://baike.baidu.com/view/2998059.htm
Google的官方文档: http://developer.android.com/intl/zh-CN/reference/android/os/DropBoxManager.html
从2.2开始出现的这个类,竟然现在才知道,无语了。。。,看下官方的解释吧:
Enqueues chunks of data (from various sources -- application crashes, kernel log records, etc.). The queue is size bounded and will drop old data if the enqueued data exceeds the maximum size. You can think of this as a persistent, system-wide, blob-oriented "logcat".
You can obtain an instance of this class by calling getSystemService(String) with DROPBOX_SERVICE.
DropBoxManager entries are not sent anywhere directly, but other system services and debugging tools may scan and upload entries for processing.

看完了我突然发现这个类和我手机中的那个应用不是一个东西。。。

DropBoxManagerService分析
DropBoxManagerService(DBMS)用于生成和管理系统运行时的一些日志文件。这些日志文件大多记录的是系统或某个应用程序出错时的信息。
下面来分析这项服务。其中向SystemServer添加DBMS的代码如下:
ServiceManager.addService(Context.DROPBOX_SERVICE,//服务名为“dropbox”
new DropBoxManagerService(context,
new File("/data/system/dropbox")));


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值