【问题标题】:what is the internal folder to save files or pictures on android when there is no SDCard present当没有 SDCard 时,在 android 上保存文件或图片的内部文件夹是什么
【发布时间】:2023-03-25 13:11:01
【问题描述】:

当存在 SDCARD 并且我用我的应用拍照时,我可以将其保存到:

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)

我想实现相同的目标,但用于内部存储。 有内部目录吗?

【问题讨论】:

    标签: android path directory android-sdcard


    【解决方案1】:

    代码中的相同路径。当没有外部存储时,它会引用内部存储(您的系统设置配置为“默认存储”的那个)。

    【讨论】:

    • 非常感谢。如果我想强制保存到内部存储怎么办?有什么办法可以走这条路?
    • 我不知道。我认为它总是使用设置为主要的卡。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多