Android Studio emulator gets stuck minimised in task bar - android

I am using Android Studio on Ubuntu 16.04. The AVD emulator starts fine, and I can install apks on it. However, if I change to a different workspace, minimise the emulator, or even click on another window, backrounding the emulator, it appears to minimise(only visible in the task bar), and from then on, it will not maximise again. Clicking on it in the bottom task bar makes it appear for a split second before minimising again. I haven't had this problem with any other window. Anyone know how to fix it?
So far I have tried:
Setting the emulator window to always stay on top
answer to install various libs that have helped people with similar AVD problems
Starting the emulator from the command line

For Windows use:
If a window won’t maximize, press Shift+Ctrl and then right-click its icon on the taskbar and select Restore or Maximize, instead of double-clicking on the icon.

I have found a workaround. By clicking into the window menu from the very top left of the emulator window, I set the emulator to both 'always be on bottom' AND always appear in all workspaces. This way, switching workspaces doesn't have any effect on the emulator, and keeping it to the bottom layer means I can open other programs in other workspaces and not have the emulator in the way. I just can't ever minimise it. It's not ideal, but at least I can do my work!

In the bottom left corner of Android studio, there is a squared icon that allows you to see all Panles. it includes also Emulator. By selecting it, I was able to have my Emulator back on screen (view mode: float).

Related

Android Emulator not rendering correctly

A friend of mine (who doesn't have enough reputation to post images) is facing a problem with his emulator. It is not rendering as it should, even though the clicks are where they should be. In order to click on the Back button, he must click down in the black part of the "screen".
He already tried to restart his computer, change monitor resolutions and creating another emulator images.
He uses KDE and is using his NVidia hardware to process graphics.
My answer from this post: Android emulator screen fills up only some fraction part of actual android emulator screen
Best and simplest way to do it on Windows 10:
Close your Android Emulator if it is open
Right-click desktop
Click Display Settings
Set Scale and layout to 100%
Open Android Emulator
Revert your Scale and layout to the (Recommended) percentage
WORKS 100%
You can fix the scaling issue when using the Hardware rendering by simply making windows override the scaling setting. How?, it's very easy. Simply locate the .exe file for the emulator that you are using, (e.g. "qemu-system-armel.exe" for ARM and "qemu-system-x86_64.exe" for x86). To make sure which .exe file, just run the emulator then use task manager to locate the .exe file is running, see the screenshot. locate the .exe file using task manager
In my case it was in this location: "C:\Users[Username]\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe"
Now just right click on the file then click on properties then choose the "Compatibility" tab. Under "Settings" at the bottom, click on "Change high DPI settings". A new window will open. Tick the last checkbox "Override high DPI scaling behavior." under "High DPI scaling override". Then select from the drop down below it "System" (this is very important or it will not make any difference!), see the screenshot below. Now just hit OK and OK. Restart Android Studio and that's it, problem solved :)

eclipse android emulator buttons don't work

I'm developing an android app on Eclipse Juno.
The android emulator starts up properly loads my splash screen
and then moves on properly but none of the buttons on the emulator
work. All of the buttons that represent the buttons on the phone do
nothing when clicked and also when I try to click any buttons on my
app nothing happens. Anyone have this problem before?
start the eclipse
start android virtual device manager.
select the AVD which you use.
4.select edit in right corner.
in the hardware option select new.
add keyboard lid support and keyboard support.
set value yes for this properties.
now start emulator this will work.
In the new ADT, they changed the way the keyboard support works for emulators...so you need to manually add support for it. If you go to your AVD Manager then edit your AVD, in the Hardware section click New and add 'Keyboard support' and set the value to 'yes'. That should fix it for you.

Stop Eclipse from opening Logcat when running an Android app

When doing Android development in Eclipse and running an application, my perspective stays in 'Java' but the LogCat view still opens in the sidebar (the one on the right where the Outline view is).
I don't want LogCat to open, it's annoying. If I want to look at it I can switch perspectives to DDMS.
Go to the Android > LogCat section of Eclipse's Prefereneces window and try adjusting settings in there:
In particular, the bottom two checkboxes look promising for adjusting this behavior.

Minimize button missing on Android SDK and AVD Manager when launched from Eclipse

I recently switched my developing platfrom from win7 to ubuntu 11.04. Installation was pretty straight forward however I started notice things are different. First, the Android SDK and AVD Manager, when launched from Eclipse, does NOT have the minimze button. If I right click on the top bar, the minimize option is disabled. What's going on there? Although I can easily moved to another desktop so it doesn't interfere with coding, but it's annoying cause every time I click on the eclipse at the open window manager at the bottom of the screen, it automatically takes me to the SDK manager thinking it's the top most layer of eclipse. Any idea why that is?
Since I am on the top, also in eclipse, the bottom window segments (console, javadoc, etc) is also missing minimize button. I can minimize by double clicking the title tab of the editor, but for crying out loud, where is the minimize button for the bottom window segments. It has close, maximize, but no minimize. These are the moments that makes windows seems more superior than linux. Thoughts?
You can just close it or if for some special reason you need it open just run /opt/android-sdk/tools/android (or whatever your path is) from your command line and not from Eclipse.

How to create a Virtual Android device 800x400 that I can see on my laptop?

I want to create a virtual device (nexus one) with wvga800, 800x480 but when I do, I can't see the whole screen on my 13" macbook pro, and I can't scroll down to see the bottom of the screen. How can I see the bottom of my virtual phone screen???
thanks,
You can scale your emulator window, to more closely match the actual device size. This is an option when you run the emulator from the Android SDK and AVD Manager. This is the window you get from running the android command, or from Window|Android SDK and AVD Manager in Eclipse.
Not only will this give you an emulator window closer in size to what the actual device is (so you do not assume people can necessarily click on too-small buttons, etc.), but it will also fit your screen.
This is actually possible from your project as well, no need to start the emulator through the manager:
1) go to Run > Run Configurations... > (Select your application on the left hand side) > (Click the "Target" tab on the right hand side).
2) At the bottom there, you'll see 'Emulator launch parameters'. In the 'additional emulator command line options', add '-scale 0.75' (to make the screen 75% of full size)
Next time you start the emulator it will have scaled properly, hooray!
Ok, I found it, you have to START the emulator from the AVD Manager, after you hit the 'START' button, another window pops up allowing you to set the size of the emulator display.
If you run a project from eclipse, you will not get that screen to set the size of the emulator.
To view full emulator make use of it's full screen mode using alt+enter keys on windows & Linux. But, for mac I'm not sure b'cos i have not checked for it; it has to be same like making your media player window full screen. Please do check for mac & update my post.

Categories

Resources