"OpenCV manager was not found" error on device

asked 2015-01-06 02:52:03 -0600

Hwiyoung Kim gravatar image

updated 2015-01-06 18:09:10 -0600

I use Eclipse(ADT) with OpenCV2.4.8

I have no problem with samples to run on my device (Samsung Galaxy Note 3, armv7a neon) Though the OpenCV manager is already installed, I have a problem only with my own code. The error message was "OpenCV manager was not found".

The only thing that my code is different with the other samples is that I used TabHost for main activity.

Plz help me. Thanks in advance.

edit retag flag offensive close merge delete

Comments

The only thing that my code is difference with the other samples is that I used TabHost for main activity. I mean isn't that exactly why it doesn't run? Couldn't you start from a sample that works and merge your code in there?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-06 05:45:46 -0600 )edit

I confirmed that it works when OpenCV is used in the main activity. But it doesn't work when it used in the TabHost. I called the class as intent like this. OpenCV is imported in "LFSize.class". The error is occurred when I open the tab.

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    final TabHost tabHost = getTabHost();

    Intent int1 = new Intent(this, com.example.automqa.LFSize.class);
    int1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
    tabHost.addTab(tabHost.newTabSpec("tab1")
            .setIndicator("Light Field Size")
            .setContent(int1));
    }
Hwiyoung Kim gravatar imageHwiyoung Kim ( 2015-01-06 18:14:16 -0600 )edit