Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init opencvLoader crashed with "Not supported in system context " #18

Open
erickingxu opened this issue Feb 1, 2018 · 0 comments
Open

Comments

@erickingxu
Copy link

I used AndroidStudio 2.3.3 for build your project , I used ndk-build to build momo library sucucessfully. But crashed when debug into this code :
public void onResume() {
super.onResume();
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback);//crashed here
}
,and then I debug into it , found crashed here with error: "Not supported in system context "
if (AppContext.bindService(new Intent("org.opencv.engine.BIND"),
helper.mServiceConnection, Context.BIND_AUTO_CREATE))

So i try to replace OpenCV_VESRION_2_4_11(refer your opencv library in project), it is still the same error.
Ps: my smart phone is Samsung GALAXRY 7, and some other phone like huawei is the same error.

Please give me some tips for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant