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

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.

Related

Android Emulator's Overlay Occupies Area on Desktop in Linux

I've been doing development with Flutter. I was using a real hardware but wanted to use an emulator. I set it up but there's this issue.
I usually put my apps in virtual desktops and I switch between them with Ctrl+Meta+[arrow keys]. Each of them have a special purpose, usually desktop 1 is for browsing, desktop 2 is for development and desktop 4 is extra (for testing UI apps and emulator in this case).
However, after I launch Android emulator and switch to a different desktop, it results in the issue seen below:
The red area you see stays unresponsive for other apps such as browser, VSCode etc. (i.e. does not respond to clicks). That area is where the emulator is on Desktop 4. And it also keeps showing multitouch tool.
It's a bit annoying so I wanted to ask if anyone got this issue and if they have any solutions.
Thanks in advance.
Environment
Kubuntu 20.04
AMD Radeon R7 240/340
Solution 1
I have, somehow in a weird way, found a workaround for this issue.
After having this issue, go to the emulator window and press the magnifying glass with a plus button icon twice.
After that, it will drop that weird multitouch state and it won't bother you even as you switch desktop.
Rebooting computer will result in the same bug, however, you have to do it again.
Solution 2
Another method that works is to simply resize the window. If you have a device frame on your emulator, you can simply hold down the Meta key and hold right click and resize your window.
Solution 3
You can also maximize the window. If you have device frame around emulator window, you can press ALT+F3, which opens up window options menu, then click "Maximize". This will get rid of it.

My Emulator won't unlock

I created a brand new emulator today but it is behaving weird today. Here is my setting:
When i start it up, it loads fine. Until it gets to the lock screen. I keep on dragging/swiping from bottom to top to unlock, but it wont! This is the first time I encountered such behaviour. I tried with target Android 6.0 - API Level 23 but was able to unlock. I want to test my app on Google API 23. Please help to figure out the proper setting values.
Happened to me as well.
Another solution in addition to what #TTRansmit suggested is as below:
Close emulator.
Go to AVD manager screen, edit your Emulator and go to Advanced Settings.
Select Cold boot as Boot option located in Emulated Performance section. This way you will be able to restart your emulator and get it unlocked without loosing data.
Power off (via holding power) on the device buttons and wipe data (from Android Virtual Device Manager) worked for me. It was turning off the Device Frame from the edit/Virtual Device Configuration screen of AVD that seemed to cause the problem.
I still did not solve this problem, somewhat. To get thru, what I did was I activated the Camera emulation then relaunched the emulator. On the lock screen, I dragged the Camera icon. The camera would crash and emulator would notify you about it thru a pop up dialog. Once you exit the dialog, it will go back to your homepage UNLOCKED! I know, it was weird but it worked.

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 do I get the Android tablet emulator to be right-side up?

I just downloaded the Android 3.0 SDK and booted up an emulator with it. I rotated the emulator to portrait mode with Ctrl-F12 and then opened and the activity that was build with 2.2 and the whole emulator is upside down ( as in the emulator is upside down, home buttons are on the top and screen is upside down) . Is there a way to rotate it the other way or am I missing something entirely? ( I have already tried doing Ctrl-F11 or the Num pad, same result)
open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu. It's only available from api-level 9 (2.3.1) and higher.
Well , there can be one of the 2 cases ,
1 - I misinterpreted your question , in which case i am extremely sorry
2 - The problem has been solved in the latest download of the android 3.0 Sdk(i just downloaded 1 right now )
Here , i am posting the screen shot of my AVD running 3.0 and a 2.2 Hello World Activity .
I had this same issue when I was forcing portrait by setting screen orientation to "portrait" in the manifest file. When I made my app support rotation, and switched screen orientation back to "unspecified" the issue went away.
If you don't want to support rotation, just change the manifest while you test, and before you open the app, rotate the emulator so it opens in portrait.
I encountered this problem on running the Android SDK (Eclipse) on an Intel (Core i5) Mac. I was able to fix it by disabling the "Use Host GPU" option for the AVD.
I had the same problem, in my case when I rotated the emulator to portrait, the "desktop" would show correct. However the app would run upside down.
(This worked for v4 Ice Cream)
So, in portrait mode, in the bottom right corner of the emulator, select the settings and set "Auto-rotate screen" to OFF.
Run the app now and it will show correct.
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 or try to disable hardware keyboard.
The same thing just happened to me with a KitKat emulator whenever I setup the AVD with a default orientation of Landscape. Switching the default to Portrait fixed the problem.
The easiest way to tackle that problem is to just flip the display of your host system.
On the Mac you can do this in System Preferences > Display on Windows there is a keyboard shortcut: ctrl + alt + arrow key. (see here: https://superuser.com/questions/554589/how-can-i-horizontally-flip-invert-my-monitor-not-rotate and here: http://osxdaily.com/2010/12/28/rotate-mac-screen-orientation/)
And if you have a standalone trackpad you can just turn it around physically to have your mouse pointer move naturally.

Android 3.0 emulator only showing a fraction of the app when loaded

So I've searched for an answer but found nothing. Basically, whenever I run a simple little menu app for android tablets using the eclipse android emulator 3.0, only about 1/6th of the app is shown (the top center piece, if the tablet is held landscape.) I've done tutorials using the 2.2 emulator and they work just fine, but whenever I launch the 3.0, the app (and only the app - the android home runs fine) just doesn't appear. When I look at it in the main.xml layout folder, the graphical layout shows it exactly the way I want it to appear.
Is this a problem with the emulator? This can't be a common problem, otherwise I'm sure I would have found a solution by now, but there must be some switch or something that I'm not seeing that's making the app appear as if it were running on a phone and not a tablet.
Do you have a low resolution set for your 3.0 AVD? If you run the AVD Manager, what resolution does it show?

Categories

Resources