Initializing AgentLite Resources
API Function
This API is used to initialize AgentLite resources.
API Description
1 | public static boolean init(String workPath, String logPath);
|
Class
BaseService
Parameter Description
| Parameter | Mandatory or Optional | Type | Description |
|---|---|---|---|
| workPath | Mandatory | String | AgentLite working path, which is used to store the AgentLite configuration files and temporary files. The working path must be valid. |
| logPath | Optional | String | Log path. If this parameter is left unspecified, logs are written to the working path. |
Return Value
| Return Value | Description |
|---|---|
| true | Success |
| false | Failure |
Example
1 2 | //Call this API to initialize AgentLite resources.
BaseService.init("/sdcard/helloWorld", null);
|
Last Article: Access of Directly Connected Devices
Next Article: Releasing AgentLite Resources
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.