public class ServerConfigurationUtils extends Object
Constructor and Description |
---|
ServerConfigurationUtils(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
static String |
checkPreviousAppConfig(android.content.Context context)
Check if previous config file exists
|
static boolean |
generateXmlFileWithServerList(android.content.Context context,
ArrayList<ExoAccount> objList,
String fileName,
String appVersion)
Create XML config file from server list
|
static ArrayList<ExoAccount> |
getServerListFromFile(android.content.Context context,
String fileName)
Retrieve server list from XML config file
|
static ArrayList<ExoAccount> |
getServerListFromOldConfigFile(String fileName)
Retrieve server list from XML config file
|
static boolean |
newAppConfigExists(android.content.Context context)
Check whether new config file for app exists
|
public static String version
public ServerConfigurationUtils(android.content.Context context)
public static ArrayList<ExoAccount> getServerListFromFile(android.content.Context context, String fileName)
context
- fileName
- public static boolean newAppConfigExists(android.content.Context context)
context
- public static String checkPreviousAppConfig(android.content.Context context)
context
- public static ArrayList<ExoAccount> getServerListFromOldConfigFile(String fileName)
fileName
- public static boolean generateXmlFileWithServerList(android.content.Context context, ArrayList<ExoAccount> objList, String fileName, String appVersion)
context
- objList
- fileName
- appVersion
- Copyright © 2003–2016 eXo Platform SAS. All rights reserved.