1 | initial version |
mView is probably supposed to be a data member of the HelloOpenCVActivity class. (mXXXXX being an old convention for naming member variables).
So you would probably see something like this:
HelloOpenCVView mView;
some where close to the top of the HelloOpenCVActivity class. The "bunch of problems later on" you get when you try
HelloOpenCVView mView = new HelloOpenCVView(this);
inside onCreate() are probably scope-related, as other functions in the HelloOpenCVActivity class didn't have access to mView when you tried this. (looking at the example code, onPause() and onResume also refer to mView).
If this doesn't solve your problem, posting more error information/output would be helpful.