Build info output for all android apps added.

OpenCV build information output to logcat added to OpenCV initialization code;
Documenation for cv::getBuildInformation() added.
This commit is contained in:
Alexander Smorkalov
2013-02-12 11:10:34 +04:00
parent b6e7aeabe0
commit 1751a963f2
3 changed files with 27 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ package org.opencv.android;
import java.io.File;
import java.util.StringTokenizer;
import org.opencv.core.Core;
import org.opencv.engine.OpenCVEngineInterface;
import android.content.ComponentName;
@@ -85,7 +86,6 @@ class AsyncServiceHelper
{
mServiceInstallationProgress = true;
Log.d(TAG, "Package installation started");
}
else
{
@@ -299,6 +299,10 @@ class AsyncServiceHelper
if (initOpenCVLibs(path, libs))
{
Log.d(TAG, "First attempt to load libs is OK");
String eol = System.getProperty("line.separator");
for (String str : Core.getBuildInformation().split(eol))
Log.i(TAG, str);
status = LoaderCallbackInterface.SUCCESS;
}
else

View File

@@ -1,7 +1,8 @@
package org.opencv.android;
import java.util.StringTokenizer;
import org.opencv.core.Core;
import java.util.StringTokenizer;
import android.util.Log;
class StaticHelper {
@@ -28,6 +29,10 @@ class StaticHelper {
if (initOpenCVLibs(libs))
{
Log.d(TAG, "First attempt to load libs is OK");
String eol = System.getProperty("line.separator");
for (String str : Core.getBuildInformation().split(eol))
Log.i(TAG, str);
result = true;
}
else