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/*");
Related
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.
I've got a problem with my phone.
I am developing for Android and trying out transitions between activities, but my phone won't show them. So I downloaded the final source code of a transition tutorial:
http://chrisrisner.com/31-Days-of-Android--Day-17%E2%80%93Animating-between-Activities
I installed it directly onto my phone, but the transitions are still not showing. I think it has to do something with the settings on my phone.
I already activated Settings > Display > Show Animations.
My Phone is a new HTC Desire X running Android 4.2.
I didn't find anything on stackoverflow or google. I hope you guys have a solution for this!
Thanks in advance!
Okay, 4 months later I got a new phone (Nexus 5) and it shows all transitions, so i guess transitions are just deactivated on the Desire X, probably because it's too slow anyways.
I have been facing strange issue in my one of Android application with Motorola Defy device. I have been testing the same application on HTC and Samsung devices and it is running perfectly without any issue, however when I test it with Motorola device, it starts getting crashes.
All log files shows Adreno200-EGLSUB: : Format RGBA_8888 error. Let me add one more thing that I am using SurfaceView and surfaceHolder class.
Could anyone know what possible reasons might be and it can be sorted out?
Thanks in advance.
I met the same problem, I tried to set
getWindow().setFormat(PixelFormat.RGBA_8888);
But still returned the same problem. I run on several thousands times, no further error was shown related to this one.
According to answers Device specific error - s3dReadConfigFile "Can't open file for reading."
It will not affect the use of your application
i have it too,
just unlock your phone, and make it ready to use.
than run your app from software (Eclipse - in my case).
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.
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.