Package com.unitech.api.debugging
Class DebuggingCtrl
- java.lang.Object
-
- com.unitech.api.debugging.DebuggingCtrl
-
public class DebuggingCtrl extends java.lang.ObjectThe type Debugging ctrl.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLE_ERROR_CODEstatic java.lang.StringBUNDLE_ERROR_MSGstatic java.lang.StringERROR_UNSUPPORTEDstatic intRESULT_CODE_ERRORstatic intRESULT_CODE_SUCCESS
-
Constructor Summary
Constructors Constructor Description DebuggingCtrl(android.content.Context context)Instantiates a new Debugging ctrl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.os.BundlesaveLogcatFile(java.lang.String filePath, long seconds)Save logcat file bundle.android.os.BundlestopSaveLogcat(int pid)Stop save logcat bundle.
-
-
-
Field Detail
-
BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_CODE
- See Also:
- Constant Field Values
-
BUNDLE_ERROR_MSG
public static final java.lang.String BUNDLE_ERROR_MSG
- See Also:
- Constant Field Values
-
ERROR_UNSUPPORTED
public static final java.lang.String ERROR_UNSUPPORTED
- See Also:
- Constant Field Values
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR
- See Also:
- Constant Field Values
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
saveLogcatFile
public android.os.Bundle saveLogcatFile(java.lang.String filePath, long seconds)Save logcat file bundle.- Parameters:
filePath- the file path (String)seconds- the seconds (String)- Returns:
- A bundle contains the error code and message
int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int pid = bundle.getInt("Pid");
-
stopSaveLogcat
public android.os.Bundle stopSaveLogcat(int pid)
Stop save logcat bundle.- Parameters:
pid- ,task pid number (int)- Returns:
- A bundle contains the error code and message
int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
-