PhenoApps / Verify

GNU General Public License v2.0
0 stars 1 forks source link

Storage Access Framework Compatibility for API 29+ #2

Open trife opened 4 years ago

trife commented 4 years ago

https://developer.android.com/preview/privacy/storage https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10 https://stackoverflow.com/questions/57116335/environment-getexternalstoragedirectory-deprecated-in-api-level-29-java

trife commented 3 years ago

Utilize the data folder for sample files, etc. similar to OneKK

chaneylc commented 1 year ago

Currently the app uses getExternalStorage() to create a 'Verify' directory. When the app starts it copies sample files to this directory. You will need to replace getExternalStorage() with context.getExternalFilesDir or something alike using SAF. Read the context documentation which has examples and more explanations: https://developer.android.com/reference/android/content/Context#getExternalFilesDir(java.lang.String)