My project working fine on Galaxy s2 but on my nexus phone my open cv project is not running. The tutorial provided by open cv is running but some how it seems my project is not running and nexus is saying "It seems that you device does not support camera(or it is locked). Application will be closed. Can some one give some idea how to get rid of it .
Are you using Nexus tablet? you might be trying to access a specific camera in your code (i.e you might be trying to access back camera in nexus tablet) which does not exist.
Something like this will not work in nexus 7 tablet(older nexus 7 version)
cv::VideoCapture capture(CV_CAP_ANDROID + 0);
This is common problem with nexus 4 and kit kat (4.4). OpenCV doesn't support native camera for this system yet - try Java camera version instead, it should works.
EDIT:
If you want to solve this problem (I assume you have 4.4 Android) you have to rebuild camera_wrapper using Android OS sources. That's the way until next OpenCV official release.
Related
I'm writing an android application and i need to detect what version of Samsung Experience the device is running to do a special check. Galaxy S8 with android 7.0 allows the navigation bar to be on the left. And from my understanding only android 7.1 allows that. My application apply margins based on android version and I need to check if the version is 7 and we are running Samsung Experience 8.1.
Here you can find an example of About phone.
Another posibility is detect the position of the navigation bar on the screen (right or left). I could not find a way to do it.
thanks in advance.
I tried reading with Build.MODEL, Build.TAGS, Build.MANUFACTURER.
Take a look at Checking external app version name in android
I don't have a Samsung Galaxy S8 available at the moment, but I think you can check the version of packages com.sec.android.app.launcher or com.samsung.android.mobileservice.
May be my question seems to be dumb as i'm new baby to this...
I'm trying to run an android application in 7 inch Samsung Galaxy tab(7 inch)...everything work fine but when i move on to Samsung Galaxy Tab S2(10 inch) i faced an alignment issue in my application...Getting crashed sometimes too.
Can anyone suggest what should i do to resolve it...Have to create separate layout files for 10 inch tablet????
Please also tell me how can i test my application in an Samsung Galaxy Tab S2 10 inch emulator.
I can really recommend using Genymotion as an Emulator. It' very fast, and only has some minor limitations as free version, like you might not be able to use Google APIs.
It also provides predefined settings for different Devices.
If you don't want to use a third Party Emu, you could of course use the Android Studio Emulator too.
For the crashes: get used to use the Debugger and to using Unit Tests.
I would also recommend switching from Eclipse to Android Studio, since Eclipse is no longer the supported IDE by Google. Migrating your project shouldn't be a hassle.
Without your Layout code people won't be able to help you on that part.
So, I did a video-game in UE 4.8 and compiled it for Android.
It’s a game for training mathematical abilities in first and second
graders, using Android tablets. However, the game won’t run in the
tablets we are using for the training program. After installing the
APK, when I try to run the game, it immediately closes and a sign
appears saying: “The application has stopped”. I installed the
application in other several android devices and it works fine (e.g.
LG F60, Samsung Galaxy S5). However, I need to make it work for this
particular tablet, because those are the ones we are using for the
training program and we have like 80 of them. The tablet is a
ProntoTec X1, these are the specs:
CPU: All winner A31s Quad Core-Cortex A7, 1.2GHZ;
OS: 4.4 KitKat;
RAM: 1G DDR3;
10.1-inch screen, 1024 x 600 Pixels
I’ve tried different things, like compiling an empty project, but is the same: it works on other devices, but not on these tablets. I also compiled the game using different API versions of the SDK and NDK, but that didn’t help either. These are the versions that I’m currently using: ndk-r10e, ant-1.9.6, jdk-1.7.0, sdk platform-19 (android studio 1.2.2).
Please, any suggestion is welcome. Thanks!
Take a look at the droid versions supported, also have a look at the droid permissions, I had this issue some time ago and the permissions is what did it for me.
I am doing a game in unity game engine .
I started developing the game in 4.6 but later on unity 5 get released so i upgraded my project to unity 5 version now my game running on android devices but i have one problem with shadows of game-objects which are showed in unity editor but not on the device.I am not able sort out this problem. I am also using NGUI for game user interface.
just changed the quality settings to fastest
you can find that option in edit->project settings->quality->then in right side you will see levels for different platforms set it to fastest
this worked for me
Check your quality settings (Edit/Project Settings/Quality) and make sure the default quality level for Android has shadows enabled.
I had this problem too, and then discovered that it was a limitation of the device I was using. On a slightly older Asus Nexus 7 tablet, shadows wouldn't appear, no matter what I did in the Quality Settings. I switched to a Lenovo Yoga 2 tablet and everything worked fine.
I've developed an android application using opencv and I used back camera in my app. I can use my app in Galaxy S1 but surprisingly when I want to test it on Galaxy s4, after some seconds my phone restarts!
How can I fix this problem?
you can look at this question that I post:
http://answers.opencv.org/question/20054/video-get-stuck-on-galaxy-s4/
I have also the same problem, till now I didn't solve this problem.
you can see here the status of the bug: http://code.opencv.org/issues/3113 .
I use MediaMetadataRetriever that is much slower and you have to save the video first.