【问题标题】:I want to download pdf from my website into my app and that pdf only show in my app only我想从我的网站将 pdf 下载到我的应用程序中,并且该 pdf 仅显示在我的应用程序中
【发布时间】:2019-08-03 06:34:22
【问题描述】:

我想从我的网站下载 pdf 到我的应用程序中,并且该 pdf 仅显示在我的应用程序中,其他应用程序无法访问它。我需要在我的 Android 代码中实现什么类型的逻辑?

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    将您的pdf文件下载到android手机的内部存储中。根据android开发者网站,默认情况下,保存到内部存储的文件是您的应用程序私有的,其他应用程序无法访问它们(用户也不能)。 参考https://developer.android.com/training/data-storage/files

    【讨论】:

    • 如果您找到有用的答案,请接受并关闭问题。
    猜你喜欢
    • 2018-08-16
    • 2021-09-19
    • 1970-01-01
    • 2012-03-28
    • 1970-01-01
    • 2019-04-30
    • 1970-01-01
    • 1970-01-01
    • 2012-12-30
    相关资源
    最近更新 更多