通过Intent.ACTION_VIEW打开时禁用读取器应用程序上的缓存

时间:2017-02-01 04:37:52

标签: android caching android-intent

我需要使用android默认的View intent(Intent.ACTION_VIEW)打开我的app私有文件(pdf,txt等)和一些阅读器应用程序。

    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setDataAndType(uri, "application/*");
    startActivity(intent);

但我不需要将文件缓存到阅读器应用程序中。有没有办法做到这一点?或者我是否需要在我的应用程序中集成阅读器库以防止这些缓存。

0 个答案:

没有答案