How to resolve the camera issue in mi phones using xamarin - android

I want to use a camera from mi phone and I created a POC by using following link.
https://developer.xamarin.com/recipes/android/other_ux/camera_intent/take_a_picture_and_save_using_camera_app/
but the problem is that when I opened the camera the app closing automatically especially this problem was coming with mi phones and it's working fine with other phones. Can you please suggest what to do. It is very important for my project.

Related

No application can perform this action

I want to launch a single Intent to select images from either the Gallery or the Camera. I refer this answer in my application.
I have already tested the code and it was working perfectly fine on my device.
But when I test it today, it was showing dialog box with message "No application can perform this action".
I have looked in my phone camera and gallery both working fine and enabled. Still I am having this issue in my phone.
I have also looked on the internet but not able to find any solution. Hope you guys can help me.
P.S. I am using Sony Xperia M(Android version 4.3) for testing.
I resolved issue by setting setType("image/*");

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.

Android Application getting restarted when Camera is on and taken picture

I am workling on mobile application developed using DOJO toolkit and Apache Cordova API To handle device specific code like Camera . Application is getting restarted when camera is launched and taken picture ,once we save the picture , the application is started from the login screen.Again application is working absolutely fine in Samsung Galaxy tablet having Android v 4.1.2 .But failing in Samsung Galaxy S3 android version 4.1.2 .Appreciate your help.
Thanks
Krishna
this happens on memory strapped devices. Have you tried the foregroundcamera plugin as an alternative?
https://code.google.com/p/foreground-camera-plugin/

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.

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