1 | initial version |
I solved it by commenting the OpenCVLoader.initAsyn() and using OpenCVLoader.initDebug(), and then move the used code in loaderCallback method under the OpenCVLoader.initDebug().
The code will be like below:
// TODO Auto-generated method stub
//OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this,
// mLoaderCallback);
if(OpenCVLoader.initDebug()){
//code from mLoaderCallbak
System.loadLibrary("lib");
//other thing you want to do
}
also you need to add something in the Android.mk .Seek for detail in the tutorial "Application Development with Static Initialization",