title: How to integrate OpenCV Manager into the Android application's .apk, other SO questions didn't resolve this?
body: <p>I used <a href="https://stackoverflow.com/questions/20259309/how-to-integrate-opencv-manager-in-android-app/20259621?noredirect=1#comment56872380_20259621#answer-20259621">this SO answer</a> as a guide, and did the following, <strong>but when I copy the app's <code>.apk</code> file from its <code>bin</code> directory, transfer it to a phone which doesn't have OpenCV Manager installed, it prompts and requires to install it first</strong></p>
  
  <p>The OpenCV4Android library project is already in my Workspace in Eclipse. 
  The application I am talking about does have a reference of the OpenCV library, as it was running on a device which had OpenCV Manager installed.</p>
  
  <p>Now, the SO answer which I referred to provides a link to <a href="http://docs.opencv.org/2.4/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#application-development-with-static-initialization" rel="nofollow noreferrer">this tutorial</a>. In the tutorial, at this point, it is stated,</p>
  
  <blockquote>
    <p>If your application project doesn’t have a JNI part, just copy the
    corresponding OpenCV native libs from
    <em><code>&lt;OpenCV-2.4.11-android-sdk&gt;/sdk/native/libs/&lt;target_arch&gt;</code></em> to your
    project directory to folder libs/.</p>
    
    <p>In case of the application project with a JNI part,...</p>
  </blockquote>
  
  <p>I believe my app does Not have a JNI part, because I don't even know what JNI is. It is a simple, basic app which doesn't do much. </p>
  
  <p><strong>I am confused about <em>the <code>&lt;target_arch&gt;</code> part</em> of the path given. In my computer, I copied the following directory to my project's <code>libs</code> folder:</strong></p>
  
  <pre><code>D:\Android\OpenCVv2.4.11\OpenCV-android-sdk\sdk\native\libs\x86
  </code></pre>
  
  <p>And lastly, in my <code>MainActivity.java</code>, I do initialize the library like:</p>
  
  <pre><code>private BaseLoaderCallback baseLoaderCallback = new BaseLoaderCallback(this) {
      @Override
      public void onManagerConnected(int status) {
          switch (status) {
          case LoaderCallbackInterface.SUCCESS: {
              Log.i(TAG, "OpenCV loaded successfully!");// check
              openCvCameraBridge.enableView();
          }
              break;
          default: {
              super.onManagerConnected(status);
          }
              break;
          }
      }
  };
  
  @Override
      public void onCreate(Bundle savedInstanceState) {
          ...
          setContentView(R.layout.activity_main);
          openCvCameraBridge = (CameraBridgeViewBase) findViewById(R.id.mainActivity_javaCameraView);
          openCvCameraBridge.setCvCameraViewListener(this);
      }
  
      @Override
      public void onResume() {
          super.onResume();
          OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, baseLoaderCallback);
      }
  </code></pre>