Kaydet (Commit) cd77f787 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

android: Enable debugging messages as the first thing we do.

Additionally log what we are trying to open - very useful for debugging
bootstrap problems ;-)

Change-Id: I942b144d97a57cbcb709b2d67029bfa09b339be2
üst d2eeb05d
...@@ -74,9 +74,11 @@ public class LibreOfficeMainActivity extends Activity { ...@@ -74,9 +74,11 @@ public class LibreOfficeMainActivity extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
try { try {
LibreOfficeKit.init(this); // enable debugging messages as the first thing
LibreOfficeKit.putenv("SAL_LOG=+WARN+INFO-INFO.legacy.osl"); LibreOfficeKit.putenv("SAL_LOG=+WARN+INFO-INFO.legacy.osl");
LibreOfficeKit.init(this);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
Log.w(LOGTAG, "zerdatime " + SystemClock.uptimeMillis() + " - onCreate"); Log.w(LOGTAG, "zerdatime " + SystemClock.uptimeMillis() + " - onCreate");
......
...@@ -827,6 +827,8 @@ openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_uInt32 uFlags, ...@@ -827,6 +827,8 @@ openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_uInt32 uFlags,
oslFileError eRet; oslFileError eRet;
#ifdef ANDROID #ifdef ANDROID
SAL_INFO("sal.file", "osl_openFile: " << cpFilePath);
/* Opening a file from /assets read-only means /* Opening a file from /assets read-only means
* we should mmap it from the .apk file * we should mmap it from the .apk file
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment