Back to project page SysAdmin-Nagios-Client.
The source code is released under:
Apache License
If you think the Android project SysAdmin-Nagios-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 com.SysAdmin; /*ww w.ja v a 2s .c o m*/ import android.os.Environment; /** * Provides methods to access common file path variables. * * @author Lukas Bernreiter * @version 0.5, 14/03/2012 * @since 0.3 */ public abstract class FilePathFacade { private static final String SD = Environment.getExternalStorageDirectory().getAbsolutePath(); private static final String ROOTDIRECTORY_WORKING = "/SysAdmin/"; private static final String SUBDIRECTORY_SAVED = "Saved/"; private static final String FILE_TEMP = "status.xml"; /** * Retrieves the path to the temp file * @return the path */ public static String GetTempFile(){ return SD+ROOTDIRECTORY_WORKING+FILE_TEMP; } /** * Retrieves the path to the save sub directory. * @return the path */ public static String GetSavedDirectory(){ return SD+ROOTDIRECTORY_WORKING+SUBDIRECTORY_SAVED; } public static String GetRootDirectory(){ return ROOTDIRECTORY_WORKING; } }