I switched on the camera in settings and can see stuff on the preview
but the camera doesn't work, I thought it was my program that called the camera wrongly but the default camera app also doesn't work
I really don't want to go back to using eclipse's AVD!. TIA
I just encountered this problem and the solution here worked like a charm.
I use genymotion as well, its great:D make sure no other apps are trying to access your camera. Also if you have a firewall make sure its not blocking access to the camera. If you have a camera on your computer you could try to switch the front or back camera option in genymotion to your computers camera instead of dummy camera. As a last result try to Create another emulator.
Related
I'm developing a qr code reader application. How can I use my webcam as a camera to scan the qr code in the emulator ?
my SDK version is 4.3. I checked it out in developer.android site and they said that you have to select webcam0 as a back camera. I tried but it didn't work, and shows "unfortunately your app has been stopped".
Follow the below steps in Eclipse.
Goto -> AVD Manager
Create/Edit the AVD.
Hardware > New:
Configures camera facing back
Click on the property value and choose = "webcam0".
Once done all the above the webcam should be connected. If it doesnt
then you need to check your WebCam drivers.
check this answer for the image & a further link:
Here
Use the Camera tab in Extended controls to add or modify Scene images. There are two image locations, one on the wall and one on the table.
To view these image locations in the scene, launch your emulator, then move the camera to the dining room area through the door behind the camera’s starting position.
https://developers.google.com/ar/develop/java/emulator#add_augmented_images_to_the_scene
Sample image from my emulator:
The Android Studio virtual emulator now has virtual scene images under the camera section of the extended controls. With this you add any image to be scanned by the virtual emulator. Had a little trouble finding it though as you have to navigate into a different room to see it in the virtual scene.
Can't see virtual scene images in emulator camera app
Have you set front/Back cameras when you created the emulator like this in your AVD manager
As the title says, when I try to disable the camera, Android ignores it and as soon as I try to use some camera features, them work flawlessly.
And check the apps in the device:
Any tip to perform a full disabling of camera in android emulator?
Thanks!!
Edit: Still with no clues. I've tried Windows and Mac. Both happening the same.
in your emulator goto -> settings -> Apps -> Show "All" -> there you
can see all Internal apps also listed like CALENDER, CAMERA etc...
Choose CAMERA -> Disable
Also check in emulators there may be two applications for camera make sure you disable it too...
Hope this HELPS... :D
I am developing an application for Android ICS's 7 inch tablet. In application there is use of camera function to capture image. I allocate camera when somebody opens activity and after work completes camera releases. This is working fine. When I test this thing for 50 times continually with 4~5 frequency of opening and closing activity, application do not respond to application, Neither for in built applications and suddenly screen gets black and I need to restart system again to continue previous work. Why this problem is coming in system? Is any solution. Thanking you for reply.
It could be to do with the Nexus 7's lack of a back facing camera. This can cause problems as specified here
I can't think of anything else right now. Try adding a stack trace to your answer so we can see what went wrong.
I have an Android presentation coming up and would like to get some screenshots of my application. Thing is, I'd like to have a screenshot of the phone with the app running on it.
I could use a camera and take a pic of a droid phone+app, but seems to me the AVD used to run inside a picture of the Nexus phone. Just wondering if it's an Eclipse config option somewhere?
Thanks!
Try using image editing software to superimpose the screenshot into an image of the phone. That's what the designers I work with do when they need to make PR screenshots.
run the DDMS from the location where ever you have installed the Android and then chose Device menu and screen capture
just do alt+printscreen from keyboard keep in mind AVD is focused you will get screen shot of AVD..
I want to create a security application in which I want to disable the mobile camera when some event occurs.
As the user, I can disable the camera by going into settings. Can we do same thing in using code?
You could write code that opens all cameras and doesn't release them. As long as your app is running the camera won't be available to other apps, including the default camera picture taking thingamajig.
If you still need a right solution then use DevicePolicyManager.setCameraDisabled().