Android emulator is never disabling camera - android

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

Related

Android Emulator Scroll Down Doesn't Work in Home Page

I am new in Android Studio. I am using Android Emulator for call rest API for my backend. Before, i scroll down basicly in main android page. But after i wanted to tried scroll down, as if i right clicked, Home Setting, Widgets and Wallpaper pop-up show me. What is the solution about that. I never changed any setting.
Thanks for reply.
It looks like your emulator is frozen. It happens quite often.
I would suggest you to try these:
Restart your computer and try to run your app in the emulator. After it successfully runs, now try to clear the app cache.
If that didn't help, create another emulator. I recommend to choose different device and API level than the current emulator device but it is not necessary. This should solve your problem.
Tips
If you want to clear data, clear cache, uninstall app, clear cache and restart the app and so many such actions from android studio without touching your emulator then you can use ADB Idea plugin.
For that, in android studio go to Settings -> Plugins
search for ADB Idea in marketplace. Install it.
You need to restart android studio.
To use it:
You can press shift key in your keyboard twice and search for Adb in search window. You will get all the options from the plugin
From android studio menu... Tools -> ADB Idea and then you will see all the options available.

Camera in Android Oreo emulator

I'm running Visual Studio 2017 15.8.5 with Android_Accelerated_x86_Oreo embulator version 27.2.9-4773671.
When I run the emulator, the computer's webcam does not activate. I only get some placeholder image.
Is there anything I can do or try to get the webcam to work from within the Android emulator? I'm trying to test an app for scanning bar codes.
Thank you!
As said by #dythim you click on Tools->Android-> AVD Manager then you chose the AVD to edit, if the camera feature is not on the first screen but you can see Show advanced Settings then click on the button to show advanced settings. For camera option choose Webcam0 as value to use for front and back cameras.
The place to configure this is Tools -> Android -> Android Device Manager.

Android emulator not rotating to landscape

When i try to switch the orientation of my emulator, the emulator window rotates and the orientation of the emulator screen stays as it were. Can anyone tell me what is the reason for this?I have tried all the answers from StackOverflow and nothing seem to help
Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation.
See the history of this bug:
https://code.google.com/p/android/issues/detail?id=13189
Related question: Impossible to rotate the emulator with android 4.4
If everything else fails (it did for me), as a workaround you can use application for screen orientation.
In the other question (Impossible to rotate the emulator with android 4.4), user vldmrrr wrote that:
Until it is fixed I use this free application "Set Orientation".
Install the apk into emulator using adb install.
The application displays a shortcut in the notification status bar.
(I know it's an old question, but it's pretty high in google).
With the android L emulator you can go into landscape by opening your app, then opening the camera app (you will need to set an emulated camera in AVD) record a video. Then press ctr-f12 of 11. In the camera app click the video thumbnail and play it back. The video should go to landscape. Then press the multitasking button and multitask into your app. DO NOT GO TO THE HOME SCREEN OR YOU WILL HAVE TO GO INTO THE CAMERA APP, GO TO LANDSCAPE AND REPLAY THE VIDEO! please let me know if this works for any other android emulator versions.
My solution was to enable the accelerometer in the device profile.
These answers help me to do this.. Please try these and you can see what u wanted to do
https://stackoverflow.com/a/4057309/1063861
https://stackoverflow.com/a/4535315/1063861
This is a bug in android emulator. Add Keyboard Support - yes in emulator properties to fix this problem. You can track this bug : http://code.google.com/p/android/issues/detail?id=34237
Other answers cover this pretty well, but there seem to be some restrictions on using the Ctrl key bindings (at least in Linux).
Summary: Key bindings for changing emulator orientation
Note that there are relevant bugs for emulator targets v2.3 and v4.4. See the bug reports for more info and workarounds.
Emulator shortcuts are listed here.
Prev Layout: KEYPAD_7 or Ctrl-F11
Next Layout: KEYPAD_9 or Ctrl-F12
Notes on Ctrl key bindings (in Linux)
Although the docs claim Ctrl-F11/12 work, I've found that these bindings only work using the left control key (LeftCtrl-F11/12). Someone mentioned this happening in Windows, so it's not just Linux.
LeftCtrl-F11/12 using a key remapped to LeftCtrl doesn't work for me. I need to use the physical LeftCtrl key. I don't know whether this affects non-X11 systems as well.
Note on KP_n key bindings
Keep in mind that a few numeric keypads actually emit scancodes for the number-row digits, rather than the proper keypad digits. Such keypads won't work for any keypad-specific bindings.
you can try in two ways.
1.left ctrl+F11
2.enable num lock then press 9.
Is only your application is not rotating or other applications in the emulator also not rotating?
If only your application is not rotating, then there must be android:screenOrientation parameter set somewhere in the manifest file.
If all other apps on the emulator are also not rotating, no problem with your application, delete and create a new emulator..
Check in your manifest if there is android:screenOrientation
<activity
android:name="com.your.activity"
android:screenOrientation="sensorPortrait" >
</activity>
If this is the case, delete the lines.
try pressing numpad 7 ... it will rotate your emulator screen.

How to enable the DayDream feature in the Galaxy Nexus10 Emulator?

I made android emulator for Nexus 10 using latest ADT(21) and SDK tools.
I know that in Android JellyBean 4.2 there's a new feature called DayDream. I want to access it in my Nexus10 Emulator I have. but don't know how.
i am not getting option Daydream inside Settings -> Display.
How can i enable and use it Inside Emulator?
Here's what i need to do:
1st Step: Launch the Settings app, scroll to the bottom, and tap About Phone.
2nd Step: In the middle of the screen is the listing for Android Version. Tap this item until you see a jelly bean appear on your screen. You can then tap and hold the giant jelly bean until your device vibrates. You should then see interactive beans floating all over your screen. And yes, you can fling them. Go ahead, try it.
3rd Step : After doing, this the BeanFlinger Daydream will be unlocked. You can find the Daydream option by going to Settings > Display > Daydream.
Hope it Will Help to all of the Users Facing this Same kind of Problem.
I too had the same problem, what I did was, previously, I had an emulator with 4.2.1 version. I changed it to 4.3, now its working for me.

DDMS Screen capture does not work

I cannot get the "Devices" screen capture (as shown in DDMS perspective) to work with my Archos A80 (it works with a Samsung Galaxy).
I tried the suggestions mentioned in Android screen capture problem in Eclipse . When the running DDMS stand-alone as suggested there, I see i nthe windows console: W/ddms: Unable to get frame buffer: time out. I have already set the time out to 35000 in the DDMS options to no avail.
Any other suggestions?
I had the same problem. After I disabled "Use host GPU" it works like a charm.
I also cross-posted this answer in the question you linked: This works for me, also when Logcat ceases to work: When I disable and re-enable the debug mode on the device, everything is working again.
I think you should try this on eclipse
Go to Window -> show view -> other -> android -> devices, then click **OK**
Now select the device which you want to take screen shots and then click Capture Screen button on the rightside of the Devices screen.

Categories

Resources