1
我使用下載我的應用程序的某些文件以下DownloadManager.Request
:如何使用DownloadManager下載文件只能從我的應用程序訪問?
Request request = new Request(Uri.parse(url));
request.setDestinationInExternalFilesDir(getActivity().getApplicationContext(),
Environment.DIRECTORY_DOWNLOADS, filename);
對於法律問題,我想這些文件是從應用程序才能訪問。
使用我的代碼我可以看到下載管理器應用程序中的文件,我可以從那裏分享它們。
如何讓我的應用程序只能訪問和顯示文件?
如果用戶是root用戶,則不能。 – Simon