Android Custom Camera video capture Issue with samsung galaxy tab - android

I am developing a simple custom video recording for my application. When i tried to run the application on Samsung galaxy tab 2 (4.0.4) i got the error "media server died" , "camera server died" ,"I camera died " ,"Camera error 100", and hangs. But it perfectly working on other devices like Toshiba regza , and other custom tabs. Please help me.

I suspect this fixes your problem as well. When dealing with the camera on Android you often have to deal with device specific issues.

Related

Surprisingly I can't use back camera in android using OpenCV in Galaxy S4

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.

Camera Error 100 on .takePicture ONLY AFTER stopping a video recording

Greetings StackOverflowers!
I've searched at great length, but finally have to admit I'm out of ideas.
Please find a minimalist Eclipse project at https://github.com/ppinter1/AndroidCamera.git which demonstrates the problem I'm having on a Samsung Galaxy Tab 10.1 and Android 4.1.1
In essence: the dreaded Camera Error 100 (with attendant death of ICamera/media server/Camera server) occurs whenever I call .takePicture after stopping a video recording.
What's tested and working in the code provided:
any number of photos can be captured
any number of videos can be recorded as well
even taking a photo while recording works fine (a nice side effect)
BUT, taking a photo after stopping a recording (that is, either by hitting the 'Stop Recording' button, or because the recording is automatically stopped when the maximum file size of 5MB is reached) causes the generic Camera Error 100.
I would be most appreciative if others would test this code on their Android device.
Is it a bug just with this tablet? If it fails on other devices as well, can anyone tell me
what I'm doing wrong or how to diagnose this further?
If the code works for you, please reply with your device model and Android version.
With many thanks,
Pete
UPDATE:
Couple things:
A Samsung Developer support tech reports no error running my github test code on an S3 device, but sees an Exception with Galaxy Tab and Nexus. He believes the test code uses the Camera API incorrectly, yet I don't think I can make the code any simpler... if anyone spots an API usage error, please correct me!
I've opened an issue at Google's Android tracker with additional log file detail.
As detailed on the tracker link above, it turns out one needs to Add an extra .stopPreview() after .reconnect() and before .startPreview.
Massive thanks go to developer etalv on the Android Open Handset Alliance Project for the tip.

unable to stream mp4 on galaxy nexus jelly bean

i'm having trouble trying to find a video player to play a stream for my app on a galaxy nexus.
it works on every other phone apart from nexus.
if i dont give the app the tag to tell it that it's a video in the url it gives me an options screen to choose what to complete the action with, in this list it doesn't show a video player. (if i state that it is a video i get a class not found exception)
anyone know what the issue is? as i said it's working on other phones apart from nexus, even works on galaxy s3
thanks

Error code 1, -110 in media player android

I got the MediaPlayer error code as (1,-110) on BeagleBoard Hardware running ICS.The code runs fine on android tablets with ICS but I get a dialog box as "Sorry,this video cannot be played" error on BeagleBoard only.Any suggestions.
This is a time out error from the MediaPlayer:
http://developer.android.com/reference/android/media/MediaPlayer.html#MEDIA_ERROR_TIMED_OUT
Also, it may happen with an issue with Samsung firmware on Android 4.1.2, I've seen it in Galaxy S2 mini and Galaxy S3. Take a look here:
https://stackoverflow.com/a/18378273/3032209
You could solve it if you play the file it with another library, which will have the adequate codecs, like aacdecoder-android
I know my answer is too late to your question and I think you were able to fix this problem by now, but if not and for those people who are struggling with the Media Player Error (1, -110) (like I did the whole day today, Android HTC Desire X Jelly Bean 4.1.1), maybe this is the solution for you:
Just reboot your android (or close all the apps, which are using the Media Player).
In my case it was not a programming error, I just had to many apps open using the Media Player Instance, which led to that time out and I could not use it anymore.

How to run zxing apps on avd

I m new to android
i have installed BarcodeScanner3.72.apk on MY AVD for testing if it works or not
My AVD Camera is working properly i can get image with it.
But whenever i start Barcode Scanner app it shows black and white background
I am not getting whats the problem.
One more thing i have also install same app on My Samsung Galaxy but it can't read barcode.
is there anything that i should keep in mind to use barcode app on samsung Galaxy!!
Sorry for my english !!!!!
Thanks
There is no camera preview available in the AVD, so the black and white pattern you see is normal, and just the AVD's fake video stream.
Tom Gibara has posted the famous and canonical way to slip a live video feed into code that's running on the AVD. YOu would need to modify the Barcode Scanner source for this to work.
Barcode Scanner works well on the Samsung Galaxy, I'm not sure what issue you're having.

Categories

Resources