如何使用第三方组件浏览 Android 中的文件系统?

发布于 2024-12-21 04:56:06 字数 279 浏览 4 评论 0原文

我有一个目录,其中包含大量文件。 现在,我想通过提供文件夹路径(例如/data/sdcard/DCIM/untrustable_awesome_images/)来打开一个应用程序(文件管理器|图像管理器)。

文件管理器只需浏览到这个简单的目录,图像管理器应该自动读出该文件夹中的所有图像并按照他的意愿显示。

主要思想是概述该目录中包含的所有图像并能够简单地查看它。

  • 您知道如何使用 Intent 解决这个问题吗?
  • 您还有其他更好的想法来解决这个问题吗?

I have got a directory with loads of files within it.
Now, I want to open an application (a file manager | a image manager) by giving the folder path to it (e.g. /data/sdcard/DCIM/unbelievable_awesome_images/).

A file manager just has to browse to this simple directory, a image manager should automatically read out all the images within this folder and display as he whishes.

The main idea is to have an overview of all the included images within this directory and the ability to simple view it.

  • Do you have any idea how to solve this using Intent's?
  • Have you got another, better idea how to approach to this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℉絮湮 2024-12-28 04:56:06

您可以向 OIFileManager 发送一个 Intent,必须安装该 Intent 才能正常工作 http://openintents.org/en/文件管理器

Intent intent = new Intent("org.openintents.action.PICK_FILE");
startActivityForResult(intent, 1);

You can send an intent to OIFileManager which will have to be installed for this to work http://openintents.org/en/filemanager.

Intent intent = new Intent("org.openintents.action.PICK_FILE");
startActivityForResult(intent, 1);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文