fixed android example
This commit is contained in:
@@ -2,7 +2,6 @@ apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
buildToolsVersion '27.0.3'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user