I am trying to create a wrapper for 3rd party library using SLC.
I am getting this error:
Starting step: Compiling Java code.
javac 1.8.0_161
C:\Users\Rui.C\Desktop\Nouveau dossier\b372lib\src\com\example\B372Lib.java:3: error: cannot find symbol
import android.os.ToolManager;
^
symbol: class ToolManager
location: package android.os
1 error
Error.
This is the java file:
package com.ieimoblie.b372lib;
import android.os.ToolManager;
public class B372Lib
{
private ToolManager mTool;
private final android.content.Context mContext;
private static String TOOL_SERVICE = "toolservice";
public B372Lib(android.content.Context context) {
mContext = context;
mTool = ((ToolManager)mContext.getSystemService(TOOL_SERVICE));
}
public void setStatusBarExpendEnable(boolean value) {
if (value) {
mTool.setStatusBarExpend(value);
} else {
mTool.setStatusBarExpend(value);
}
}
public void setShutdown()
{
mTool.UserSetShutdown(true);
}
private void setReboot()
{
mTool.UserSetReboot(true);
}
public void setWakeUp() {
mTool.setUiWakeUp(true);
}
public void setNavigationBarHide(boolean value) {
if (value) {
mTool.setNavbarDisableOption(true);
} else {
mTool.setNavbarDisableOption(false);
}
}
public boolean getNavigationBarHideInfo()
{
if (!mTool.getNavbarDisableOption()) {
return false;
}
return true;
}
public void setUsbDebugEnable(boolean value)
{
if (value) {
mTool.setUsbDebugEnable(true);
} else {
mTool.setUsbDebugEnable(false);
}
}
}
Any help is welcome.
I am getting this error:
Starting step: Compiling Java code.
javac 1.8.0_161
C:\Users\Rui.C\Desktop\Nouveau dossier\b372lib\src\com\example\B372Lib.java:3: error: cannot find symbol
import android.os.ToolManager;
^
symbol: class ToolManager
location: package android.os
1 error
Error.
This is the java file:
package com.ieimoblie.b372lib;
import android.os.ToolManager;
public class B372Lib
{
private ToolManager mTool;
private final android.content.Context mContext;
private static String TOOL_SERVICE = "toolservice";
public B372Lib(android.content.Context context) {
mContext = context;
mTool = ((ToolManager)mContext.getSystemService(TOOL_SERVICE));
}
public void setStatusBarExpendEnable(boolean value) {
if (value) {
mTool.setStatusBarExpend(value);
} else {
mTool.setStatusBarExpend(value);
}
}
public void setShutdown()
{
mTool.UserSetShutdown(true);
}
private void setReboot()
{
mTool.UserSetReboot(true);
}
public void setWakeUp() {
mTool.setUiWakeUp(true);
}
public void setNavigationBarHide(boolean value) {
if (value) {
mTool.setNavbarDisableOption(true);
} else {
mTool.setNavbarDisableOption(false);
}
}
public boolean getNavigationBarHideInfo()
{
if (!mTool.getNavbarDisableOption()) {
return false;
}
return true;
}
public void setUsbDebugEnable(boolean value)
{
if (value) {
mTool.setUsbDebugEnable(true);
} else {
mTool.setUsbDebugEnable(false);
}
}
}
Any help is welcome.