【问题标题】:Import OpenIntents to use the OI File Manager in an Android application导入 OpenIntents 以在 Android 应用程序中使用 OI 文件管理器
【发布时间】:2012-09-13 11:34:41
【问题描述】:

我想在我的应用程序中使用 OI 文件管理器作为集成文件浏览器来搜索和选择文件。

我可以使用以下命令实现浏览器:

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

然后我看了一下demo例子,有问题,如果要导入

import org.openintents.intents.FileManagerIntents;

我在 Eclipse 中收到以下错误:

The import org.openintents cannot be resolved

有什么问题?

谢谢,迈克

【问题讨论】:

    标签: android android-intent import file-browser


    【解决方案1】:

    你不需要导入任何东西。

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

    以上行将调用设备上已安装的 OI 文件管理器并运行 PICK_FILE 操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-25
      • 1970-01-01
      • 2013-10-11
      • 1970-01-01
      • 1970-01-01
      • 2011-09-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多