diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-05-16 09:55:48 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-05-16 10:12:25 +0300 |
commit | 182c1e4f99d7d3ae73cafdae02573ca29b6639cc (patch) | |
tree | 913434248ad0d3b0c36c52180075ba7c8905858c /android | |
parent | c53c665de33d931e5d3a6ad767240fc83ac8bd69 (diff) |
Call lo-bootstrap's redirect_stdio
Change-Id: I45732ac81d00837ce517ed5c527c8c767e690abf
Diffstat (limited to 'android')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index b562da8964a3..82a40b701e66 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -101,6 +101,10 @@ public class Bootstrap extends NativeActivity // (contentbroker.cxx), also this called indirectly through the lo-bootstrap library public static native void initUCBHelper(); + // A method that starts a thread to redirect stdout and stderr writes to + // the Android logging mechanism, or stops the redirection. + public static native boolean redirect_stdio(boolean state); + // This setup() method is called 1) in apps that use *this* class as their activity from onCreate(), // and 2) should be called from other kinds of LO code using apps. public static void setup(Activity activity) @@ -111,6 +115,8 @@ public class Bootstrap extends NativeActivity dataDir = ai.dataDir; Log.i(TAG, String.format("dataDir=%s\n", dataDir)); + redirect_stdio(true); + String llp = System.getenv("LD_LIBRARY_PATH"); if (llp == null) llp = "/vendor/lib:/system/lib"; |