[soc] updated Android example with algorithm 0.2.5

This commit is contained in:
strawmanbobi
2020-03-11 22:10:15 +08:00
parent 5fdde1a55d
commit 6c0a0953ef
9 changed files with 23 additions and 25 deletions

View File

@@ -18,6 +18,10 @@ public class IRDecode {
private static final String TAG = IRDecode.class.getSimpleName();
static {
System.loadLibrary("irdecode");
}
private static Object mSync = new Object();
private native String irGetVersion();
@@ -49,12 +53,6 @@ public class IRDecode {
return mInstance;
}
private IRDecode() {
String libPath = "/data/irext/libirda_decoder.so";
System.out.println("loading decode library " + libPath);
System.load(libPath);
}
public String getVersion() {
return irGetVersion();
}
@@ -125,4 +123,4 @@ public class IRDecode {
// how many directions supported by specific AC
return irACGetSupportedWindDirection(acMode);
}
}
}