Аров Марат Yes I know and i have build that method but when i check some data when initializing app then i want to check permissions for read storage and it's not good idea for my case
Some data storage info: developer.android.com - Data and file storage overview | Android Developers "By default, files saved to the internal storage are private to your app, and other apps cannot access them (nor can the user, unless they have root access). This makes internal storage a good place for internal app data that the user doesn't need to directly access. The system provides a private directory on the file system for each app where you can organize any files your app needs.
When the user uninstalls your app, the files saved on the internal storage are removed. Because of this behavior, you should not use internal storage to save anything the user expects to persist independenly of your app. For example, if your app allows users to capture photos, the user would expect that they can access those photos even after they uninstall your app. So you should instead save those types of files to the public external storage."
Darian Miller Yes exactly, I use INI files for store some name value data, but I want to use some fonts in my app and when I add a file to deployment and deploying it doesn't appear to app internal storage. There is attached screenshot image file https://plus.google.com/photos/...
You can store all your data in app private folder
ReplyDeleteАров Марат Yes I know and i have build that method but when i check some data when initializing app then i want to check permissions for read storage and it's not good idea for my case
ReplyDeleteWhy would you need to check permissions for reading storage for data that is private to the app?
ReplyDeleteDavid Nottage If my app is installing on SDCard I don't want permission for reading private folder?
ReplyDeleteAre you talking about other apps accessing that private folder? There's a reason why it's called: "private"
ReplyDeleteDavid Nottage Ok maybe I doesn't understand that and because i implement storage permission request in my app
ReplyDeleteSome data storage info: developer.android.com - Data and file storage overview | Android Developers "By default, files saved to the internal storage are private to your app, and other apps cannot access them (nor can the user, unless they have root access). This makes internal storage a good place for internal app data that the user doesn't need to directly access. The system provides a private directory on the file system for each app where you can organize any files your app needs.
ReplyDeleteWhen the user uninstalls your app, the files saved on the internal storage are removed. Because of this behavior, you should not use internal storage to save anything the user expects to persist independenly of your app. For example, if your app allows users to capture photos, the user would expect that they can access those photos even after they uninstall your app. So you should instead save those types of files to the public external storage."
Darian Miller Yes exactly, I use INI files for store some name value data, but I want to use some fonts in my app and when I add a file to deployment and deploying it doesn't appear to app internal storage.
ReplyDeleteThere is attached screenshot image file
https://plus.google.com/photos/...