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.