Installing OpenCV Manager 3.0.0 on Android (phone + emulator)
Hi,
I'm new to open cv and I'm trying to install the open-cv 15 puzzle app on my android emulator, using android studio. I've read online from other sites that the current cv manager isn't available online and that I would have to install it manually as a result.
I'm trying to follow the instructions contained in the README.txt file and here, but I'm running into an "invalid apk file" error when I try to install the apk file, OpenCV_3.0.0_Manager_3.00_armeabi-v7a.apk. I'm using a Nexus 5 API 21 x86 android emulator and trying to execute the adb commands from a windows command prompt. Is my problem, that I'm installing the wrong apk file? I've installed ARM EABI v7a as my system image.
Edit: Since writing this post, there has been an update on the Google Play store for CV Manager 3.0, an update on your phone will be required. For the answer to fixing the emulator problem, read my post below.
Have you tied to run
adb install <path-to-manager-x86.apk>
?@mshabunin, I've done what you've suggested and I keep getting an "invalid apk file" error. My exact command entered was the following:
adb.exe install D:\Program Files\OpenCV-android-sdk/apk/OpenCV_3.0.0_Manager_3.00_x86.apk
. I've made sure that Intel x86 is installed for this emulator.Try to create new emulator or wipe user data in old one. Make sure you use x86 ABI (not x86_64 or any other): push the "Details..." button in AVD manager and check _CPU/ABI_ field in details window, it should state
Intel Atom (x86)
.Check your downloaded SDK. I have following MD5 hash:
8ea211c7891233d0908d9b1ef4a3b8f0 OpenCV_3.0.0_Manager_3.00_x86.apk
. Whole SDK zip file has MD5 hash:8b53d8f3ab6efa407eac971cf2e3e114
. If it is wrong, try to download the SDK again: http://sourceforge.net/projects/openc...I tested it with x86 Android 5.1.1 (API 22) emulator and it works fine (on linux).
@mshabunin
I've managed to figure it out. I had to copy the apk file to the same folder that the adb.exe was in and then run
adb install OpenCV_3.0.0_Manager_3.00_x86.apk
. I think the problem might of been the path location to the apk file was too long.EDIT: My other problem was originally trying to get the puzzle app to work but I think I've managed to figure it out. I didn't realize that there are apk files included in the samples folder. I ended up installing the example-puzzle 15 apk file since I couldn't get it to work by importing the sample module. I'm going to post your original solution as an answer and rep you.
Now I see, you should quote paths with spaces:
adb install 'D:\Program Files\OpenCV-android-sdk/apk/OpenCV_3.0.0_Manager_3.00_x86.apk'
Or even better avoid them ;-)Can one of the mods mark this question as solved?