Browse Source

Fixed undeclared variable

JNI-44
Edouard Tisserant 10 years ago
parent
commit
b5121d93b3
  1. 3
      android/src/org/pEp/jniadapter/AndroidHelper.java

3
android/src/org/pEp/jniadapter/AndroidHelper.java

@ -34,6 +34,7 @@ public class AndroidHelper {
private static File optDir; private static File optDir;
private static File versionFile; private static File versionFile;
public static File binDir; public static File binDir;
public static File libDir;
private static File tmpDir; private static File tmpDir;
// TODO : Increment when needed. // TODO : Increment when needed.
@ -59,6 +60,8 @@ public class AndroidHelper {
setenv("TEMP", tmpDir.getAbsolutePath(), true); setenv("TEMP", tmpDir.getAbsolutePath(), true);
// Tell dynamic loader where to find libs // Tell dynamic loader where to find libs
// Add GnuPG's bin to PATH
libDir = new File(optDir, "lib");
String appLibDir = ""; String appLibDir = "";
try { try {
appLibDir = new File(c.getApplicationInfo().nativeLibraryDir).getCanonicalPath(); appLibDir = new File(c.getApplicationInfo().nativeLibraryDir).getCanonicalPath();

Loading…
Cancel
Save