Package com.unitech.api.uapps
Class LoggerCtrl
java.lang.Object
com.unitech.api.uapps.LoggerCtrl
-
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleexportSettings(String filePath) Export Settingsstatic LoggerCtrlgetInstance(android.content.Context context) Get an instance of LoggerCtrlandroid.os.BundleimportSettings(String filePath) Import settings.android.os.BundleReset settingsandroid.os.BundleStart Loggingandroid.os.BundleStop Logging
-
Method Details
-
getInstance
Get an instance of LoggerCtrl- Parameters:
context- the context which needs to use this controller- Returns:
- An instance of the Logger controller
-
startLogging
public android.os.Bundle startLogging()Start Logging- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0) String errorMsg=bundle.getString("errorMsg");
-
stopLogging
public android.os.Bundle stopLogging()Stop Logging- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0) String errorMsg=bundle.getString("errorMsg");
-
importSettings
Import settings.- Parameters:
filePath- the complete file path. e.g. /sdcard/logger.conf- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
exportSettings
Export Settings- Parameters:
filePath- the complete file path. e.g. /sdcard/logger.conf- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg=bundle.getString("errorMsg");
-
resetSettings
public android.os.Bundle resetSettings()Reset settings- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0) String errorMsg=bundle.getString("errorMsg");
-