fixed android example

This commit is contained in:
strawmanbobi
2019-07-19 07:40:59 +08:00
parent 5e47ef0004
commit e34f3df64a
10 changed files with 6 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 19

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 int irOpen(int category, int subCate, String fileName);
@@ -47,12 +51,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 int openFile(int category, int subCate, String fileName) {
return irOpen(category, subCate, fileName);
}