How to run zxing apps on avd - android

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.

Related

ZXing QR Code scanning issue in Samsung Galaxy S5 - camera screen turns green during scanning

I have implemented a QR code scanning application using the ZXing library by Sean Owen.It was working fine in almost all devices. However recently I faced an issue while trying to run the application in Samsung Galaxy S5. Whenever I click on the option to start the scanning, the camera screen is shown in green (HULK green) colour. When I exit the application and open the native camera app it is not having this issue and everything is working fine. However if I again go to my app and start the scanning the green screen is shown with the scanning lines visible.
Has anyone faced such an issue recently? If so kindly help me out here.

android emulator camera not working on macbook air

It is my first question on stack overflow, forgive me if i have missed guide.
I have installed android studio 1.0.1 on my macbook air and run the avd.
I have added front and backend camera as emulated.
when i click default camera app of emulator, it shows me blurry screen , no picture view.
First i have tried to search out as much as i can do. no topic found about error related to me. thats why i have posted my question here. hope senior don't mind.
The screenshots show my avd setting for camera and avd camera app interface:
http://isb.nu.edu.pk/nusoap/maria/images/esetting.png
http://isb.nu.edu.pk/nusoap/maria/images/camera.png
I have followed these links, but my problem not resolved.
Android Camera facing front not working in emulator
Camera on Android Eclipse emulator:
unfortunately camera has stopped android emulator
Camera not working in android emulator 4.2.2, windows 8
Why the dafault camera not working in android emulator?
It works as it should, if you want to see picture use webcam instead of emulated. (Emulated shows black-grey grid)

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.

Raw Camera Display on Air

We are trying to display Camera on a part of screen(raw camera). It shows a strange black and white display on Android device, but it works properly on emulator. What do you have any idea about how to solve this problem ?
EDIT: "Tour de Mobile Flex" application in Camera->Raw Camera have same problem.
I set <renderMode>direct</renderMode> in app.xml. That configuration solve my problem.
Setting render mode to direct works for me as well (AIR 3.4 on Nexus S 4.1.2).
If you don't want to manually manage your manifest file, this can be done in the publishing settings dialog ("Edit Application Settings") in CS6.

QR reader works on phone but not with SDK

Created the following photos. https://plus.google.com/photos/110072219024510812700/albums/5746888837287802097?authkey=CJXL587H74LUVA
If I decode by pointing my Samsung Galaxy S onto my laptop's screen it reads it OK. I use Quickmark's app for that. I would like process it programatically so I downloaded Quickmark's SDK and tested it with the demo app, but it could not process it.
Could somebody please help, what might be the problem?
When you scan with an app, you are not scanning this image, but an image of this image. That may well decode, even if this one doesn't, strangely. ZXing doesn't scan this particular image either but it reads easily from screen too.

Categories

Resources