The Camera on my galaxy s2(Android 4.4.2) looks like this when i run the color blob sample code. The same code works on my galaxy tab 2 (also Android 4.4.2).
Tried with writing the code from scratch and other sample codes. There are no errors on both devices, but the image looks like this on the S2
Does anybody know how to fix this?
I have the exact same result running OpenCV Samples on my S2 i9100 with Neatrom 3.6 (4.4.2) and ART enabled. Changing ART back to Dalvik does not change anything (for what it`s worth).
Using Stock Samsung Rom fixes the problem. Seems to be something in the Custom Rom which causes the problem.
After some testing this seems to be the only working Rom for me.
I checked without success the following Roms:
CyanogenMod 10.1
CyanogenMod 10.2
CyanogenMod 11
SlimSaber 4.4.2
Biftorâ„¢SlimKat-Rom-V6.0-i9100-4.4.2
I9100_4.4.2_AOSP_NeatROM_v3.6
SlimBean 4.2.2
Related
Most of the time I use UTF-8 on Android but I'm recently testing wchar_t too.
I know wchar_t was horrible in the early days, but I don't care about too old devices so thought it would be fine to work with wchar_t now.
Tested on:
Physical devices: Samsung Galaxy Note2 (4.4.2), Galaxy S7 Edge (7.0)
Software emulators: HTC One (4.3), Samsung Galaxy S6 (5.0, 6.0), S8 (7.0), Google Pixel C (7.1.0)
In my simple tests, wcslen(), wcscpy(), wcscat() worked as expected,
but swprintf() did nothing on HTC One (4.3) and Note2(4.4.2).
I couldn't test all the devices out there, but my conclusion is that swprintf() just doesn't work on Android Kitkat and below. It may just return doing nothing.
Could someone confirm my theory, please? Is there any workaround for this?
Whether practical or not, I just want to know.
Don't ask me why, but until L Android only had a stub implementation of vswprintf that just returns -1.
https://android.googlesource.com/platform/bionic/+/kitkat-release/libc/bionic/wchar.cpp#74
The workaround would be to use libandroid_support. This is automatic if you're using libc++ (and that's the best option for NDK r16+).
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.
I am beginner of Android Developer.I just published a app on google and I get some of feedback which is screen keep on blinking in Samsung Galaxy S2. But I tested it with Nexus4 and Samsung galaxy S3 with no such problem at all. and also tested it with simulator Android 2.3.3(API 10)also No problem with it.
Since I do not own a Galaxy S2 device, do you guys have any idea which part I should look for in order to find out the problem? because I really no idea, Please help and give advice. thanks.
the app implemented some of external library which is:
(jfeinstein10) - SlidingMenu and (chrisbanes) -Android-PullToRefresh
I have written a program for Bar code scanner application it works fine in the Samsung Galaxy S551 but it didn't detect the bar code in the Samsung Galaxy Y.I compared both the devices and found it that might be due to Android version compatibility.I build application for Android 2.2 and tried to ran it on the Samsung Galaxy Y so again I build application for Android 2.3, I got the same result.Samsung Galaxy Y still didn't detect the bar code...
The Samsung Galaxy Y has no auto-focus on its camera. This prevents it to get a sharp picture of a bar code and in this way it cannot read it.
I do not know for sure if this is a hardware limitation but I think it is.
I had same problem and found that the api i am using is using autofocus of camera to detect the barcode and samsung galaxy y failed in that case. I tried other application also which is avialable in market and samasung galaxy y is not working properly for barcode scanner.
My code right now downloads an animated gif from a website, and since, as far as I know, webview and imageview doesn't support animated gifs and using BufferedInputStream and Movie.decodeStream along with a custom View to render it (this code runs in a seperate thread)
I have tested the code on the android emulator (1.6, 2.1, 2.2, 2.3.3), Xperia X8 with 2.1, ViewSonic viewpad with 2.2 and Galaxy S with 2.3.3 and the activity only crashes on the Galaxy S (after like 1 minute). On the other devices it's working just fine.
I've tried debugging the app on the Galaxy S and I get this message just before it crashes:
11-17 13:37:18.152: ERROR/(1161): Wink AGIF pDecInfo is Null or not avail
That's all I get when debugging :(
I've tried changing my code back and forth but I can't get it working. Anyone have any idea what's wrong?
We also have some problems with Samsung devices. I was told that Samsung heavily modifies original Android source code so they seem to introduce many bugs.