You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class AndroidContextUtil.java already contains a way to query the external files directory. This is actually the Context.getExternalFilesDir(null). The importance of this directory is than beginning with Android 7 this is a directory where the application can write without asking for permission, and this directory is also publicly readable, making it ideal for storing non-sensitive logfiles during development.
However there is no way to refer to this directory from the logback.xml file, because it is not registered in the logger context properties.
I suggest a new CoreConstants value like EXT_DATA_DIR which points to this directory, if available.
There are also more directories like the externalCacheDir which is also present in AndroidContextUtil but not registered in the logger context.
The text was updated successfully, but these errors were encountered:
The class
AndroidContextUtil.java
already contains a way to query the external files directory. This is actually theContext.getExternalFilesDir(null)
. The importance of this directory is than beginning with Android 7 this is a directory where the application can write without asking for permission, and this directory is also publicly readable, making it ideal for storing non-sensitive logfiles during development.However there is no way to refer to this directory from the logback.xml file, because it is not registered in the logger context properties.
I suggest a new CoreConstants value like
EXT_DATA_DIR
which points to this directory, if available.There are also more directories like the externalCacheDir which is also present in
AndroidContextUtil
but not registered in the logger context.The text was updated successfully, but these errors were encountered: