Package com.unitech.api.debugging
Class DebuggingCtrl
java.lang.Object
com.unitech.api.debugging.DebuggingCtrl
The type Debugging ctrl.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDebuggingCtrl(android.content.Context context) Instantiates a new Debugging ctrl. -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundlesaveLogcatFile(String filePath, long seconds) Save logcat file bundle.android.os.BundlestopSaveLogcat(int pid) Stop save logcat bundle.
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
ERROR_UNSUPPORTED
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
DebuggingCtrl
public DebuggingCtrl(android.content.Context context) Instantiates a new Debugging ctrl.- Parameters:
context- the context
-
-
Method Details
-
saveLogcatFile
Save logcat file bundle.- Parameters:
filePath- the file path (String)seconds- the seconds (String)- Returns:
- A bundle contains the error code and message
int errorCode = 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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-