【问题标题】:image picker for local file only , hide dropbox仅用于本地文件的图像选择器,隐藏 Dropbox
【发布时间】:2015-06-24 09:55:16
【问题描述】:

我正在使用默认图像选择器来选择照片。我在手机中安装了 Dropbox 应用。所以它与图库和照片一起显示。有没有办法隐藏图像选择器中显示的 Dropbox?我也尝试了this,但它不适用于我的应用。

![Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                    intent.setType("image/*");
                    intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);

                    Intent chooser = Intent.createChooser(intent, "Choose a Picture");
                    ((Activity) context).startActivityForResult(chooser, photoGalleryCode);]

android image picker showing dropbox

最小

【问题讨论】:

标签: java android


【解决方案1】:

只需替换 意图.ACTION_GET_CONTENT 和 Intent.ACTION_PICK

【讨论】:

    猜你喜欢
    • 2012-02-23
    • 2012-02-28
    • 2021-07-22
    • 2013-01-18
    • 2022-06-11
    • 1970-01-01
    • 2020-04-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多