Class LoggerCtrl

java.lang.Object
com.unitech.api.uapps.LoggerCtrl

public class LoggerCtrl extends Object
  • Method Details

    • getInstance

      public static LoggerCtrl getInstance(android.content.Context context)
      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

      public android.os.Bundle importSettings(String filePath)
      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

      public android.os.Bundle exportSettings(String filePath)
      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");