DropBoxManager使用情况? [英] DropBoxManager use cases?

查看:240
本文介绍了DropBoxManager使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到一个 DropBoxManager 已经在Android的API,因为升级Froyo介绍(API 8)

I noticed that a DropBoxManager has been introduced in Android API since FroYo (API 8).

它看起来像一个替代记录仪能记录不仅是文字,还有文件或字节数组,但我找不到任何详细的文档在任何地方如何以及何时我们应该使用它。

It looks like an alternative logger capable of logging not only text but also files or byte arrays, but I could not find any detailed doc anywhere about how and when we should use it.

借助最新的Andr​​oid开发博客文章介绍StrictMode 一下会谈,StrictMode可以将数据追加到Dropbox的,和我们有一个shell命令来获取这些数据。

The latest android dev blog post introducing StrictMode talks about it, StrictMode can append data to the DropBox, and we are given a shell command to retrieve these data.

请分享您的网站有关这方面的知识!为什么它除了通常的logcat得到落实?我们可以利用这个跨应用程序共享数据?什么样的应用程序使用它?

Please share here your knowledge about this! Why has it been implemented in addition to the usual logcat? Can we use this to share data across apps? What kind of apps use it?

推荐答案

有基本上在系统上三个日志:

There are basically three logs on the system:

日志:

  • 的简称,文本数据
  • 在内存中ringbuffer,快
  • 在短暂的(你会失去它的崩溃,或者ringbuffer滚动)
  • 适用于应用开发
  • for short, textual data
  • in-memory ringbuffer, fast
  • ephemeral (you'll lose it on a crash, or the ringbuffer scrolls)
  • intended for app developers

事件日志是:

  • 的简称,二进制数据
  • 在内存中ringbuffer,快
  • 在短暂的(你会失去它的崩溃,或者ringbuffer滚动)
  • 适用于平台开发收集统计信息
  • for short, binary data
  • in-memory ringbuffer, fast
  • ephemeral (you'll lose it on a crash, or the ringbuffer scrolls)
  • intended for platform developers to collect statistics

DropBox的:

  • 长文本或二进制数据
  • 在持续,写入到磁盘
  • 有点慢(磁盘)
  • 意味着平台开发过,主要是为了收集崩溃和放大器;大量统计信息。
  • 受限制,通过标记删除,如果标签的数量和/或大小得到太大

Dropbox是我们在开发过程中使用了哪些捕获所有的StrictMode违反姜饼。

DropBox is what we used during development to capture all the StrictMode violations in Gingerbread.

您可以使用DropBox的进行一次性调试,但它不是真的建议。这肯定不是推荐的方式来共享应用程序之间的数据。这是不够可靠的,你不能把权限上的数据。你应该只使用一个共享的用户名和正常使用的文件系统具有相应权限。

You can use DropBox for one-off debugging, but it's not really recommended. It's definitely not recommended as a way to share data between apps. It's not reliable enough, and you can't put permissions on the data. You should just use a shared userid and use the normal filesystem with appropriate permissions.

这篇关于DropBoxManager使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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