Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV fails to load after upgrading to Android 5.02

My application worked fine on Android 4.4.4. After upgrading OS to Android 5.02 OpenCV fails to load. My code is:

public void onResume()
    {
        super.onResume();
        OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_9, this, mLoaderCallback);
}

The stack trace shows that it fails in OpenCV code in the file AsyncServiceHelper.java line 24 it throws exception:

if (AppContext.bindService(new Intent("org.opencv.engine.BIND"),
                helper.mServiceConnection, Context.BIND_AUTO_CREATE))

Has somebody experienced this problem? Re-installing OpenCV Manager does not help. I also took new device with Android 5.02 and installed OpenCV. The app still fails to load. The hardware I tried so far is Nexus 7 and Nexus 4.

OpenCV fails to load after upgrading to Android 5.02

My application worked fine on Android 4.4.4. After upgrading OS to Android 5.02 OpenCV fails to load. My code is:

public void onResume()
    {
        super.onResume();
        OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_9, this, mLoaderCallback);
}

The stack trace shows that it fails in OpenCV code in the file AsyncServiceHelper.java line 24 it throws exception:

if (AppContext.bindService(new Intent("org.opencv.engine.BIND"),
                helper.mServiceConnection, Context.BIND_AUTO_CREATE))

Has somebody experienced this problem? Re-installing OpenCV Manager does not help. I also took new device with Android 5.02 and installed OpenCV. The app still fails to load. The hardware I tried so far is Nexus 7 and Nexus 4.

Update

I reversed the system back to 4.4.4 and app started working again. I still cannot understand what is wrong with my app in 5.0.2. Other OpenCV applications work just fine.