Back to project page Aether-s-Notebook-Android-Client.
The source code is released under:
GNU General Public License
If you think the Android project Aether-s-Notebook-Android-Client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package aethers.notebook.appender.managed.file; /* www. ja v a 2 s. c om*/ import aethers.notebook.R; import aethers.notebook.core.ConfigurationTemplate; import android.content.Context; import android.os.Environment; public class Configuration extends ConfigurationTemplate { public static final String SHARED_PREFERENCES_NAME = "aethers.notebook.appender.managed.file.Configuration"; private static final String defaultPathPrefix = Environment.getExternalStorageDirectory().getAbsolutePath(); public Configuration(Context context) { super(context, SHARED_PREFERENCES_NAME); } public String getLogfilePath() { String defaultPath = getContext().getString(R.string.FileAppender_Preferences_logfilePath_default); String configuredPath = getString( R.string.FileAppender_Preferences_logfilePath, R.string.FileAppender_Preferences_logfilePath_default); if(defaultPath.equals(configuredPath)) return defaultPathPrefix + defaultPath; return configuredPath; } }