I'm trying to use Android Emulator on Macbook Pro with retina display (and an external 4K display with 2x pixel scaling). I've tried all the possible settings in Android AVD Manager, but emulator always shows a blurry non-retina image. It seems that it treats the display like if it is 1920x1080 instead of 4K thus 1:1 pixel mapping actually happens to be 1px on device = 4px on the display.
Is there any way to make it work well?
Thank you
(I'm using OS X El Capitan and Android Studio 1.4.1)
Answering by myself — seems that it just works now with the Android Studio 2.0.
Related
I'm working with flutter in Android Studio in windows.
I set the screen size 768*1024(ipad mini size) when I create my virtual devices in android studio, but I find the height is smaller than expected. Actually when I call function window.physicalSize it shows that the size is 768*796.
I have gotten the fact that the function only shows the size of the screen that flutter can render.(So the hidden part is about what? bottom navigation bar,including three buttons, back, home, and the other one, or something else, I'm not sure.)
So, the question is how can I get exact size screen I want(768*1024)?
How can I change the font used by Android studio? Worked just switched me to a windows 10 pc from a mac and the font in AS is just too small and thin for my eyes.
Thanks in advance!
You can navigate to File>Settings>Appearance and then check the checkbox Override default font by in image and change the defaults.
Recently I upgraded the Android Studio from 1.5.x to 2.0 stable version.
Before the upgrade I was changing the screen orientation with the Ctrl + F12 or Ctrl + F11 keyboard shortcut but now it doesn't work in the 2.0 version. I also tried Numpad 7 and Numpad 9 (with the numpad on or off) but without success.
Yes, I'm aware that the new Android AVD interface contains a sidebar with various functional shortcuts which includes Rotate left (Ctrl + Left) and Rotate right (Ctrl + Right) icons but it rotate only the the device not the mode (Landscape or Portrait) as it showed in the image below:
How can I change emulator screen orientation to landscape or portrait in the new Android Studio 2.0?
P.S. Please do not mark my question as duplicate, I tried all the solutions from How do I change screen orientation in the Android emulator? and How to rotate the Android emulator display? as those questions were valid for earlier versions of Android Studio.
P.P.S. I'm using Ubuntu 14.04 operating system on a Samsung R530 notebook.
It seems to be a bug. Please check out https://code.google.com/p/android/issues/detail?id=206262 and report the observed behavior.
Edit: Fixed in SDK Tools 25.1.6
This is not a real solution, but if anything don't work, it's good workaround. Just add screenOrientation property to activity in the Manifest file.
<activity
android:name=".MainActivity"
android:screenOrientation="landscape"
/>
After upgrading my operating system from Ubuntu 14.04 to Ubuntu 16.04 the bug disappeared and the Rotate left (Ctrl + Left) and Rotate right (Ctrl Right) works fine.
How can I change display resolution of Android Studio IDE? Background: I was running Android Studio 1.1 on 1920 x 1080 Win 8.1 with 14 inch screen. Although the font was not very clear the size was acceptable. Android Studio has just updated to version 1.2 and the whole IDE resolution has changed. I have tried changing the compatibility setting with no improvement. I can change the editor font and console text to make it readable but the toolbar buttons are too small for comfort.
Update: OK, I've learned to live with it, but I'm surprised no-one else has the problem.
I have created an Android 4.2 AVD. For the need of my current project, the main screen orientation is landscape. The software keys option is selected.
The mode is set to xhdpi, like a Galaxy Nexus phone.
As I start the emulator, I see a black stripe on the right where the buttons should appear, but it remains black. Thus, there is no way to trigger a Back action since the emulated physical keys are disabled.
The problem can be fixed by configuring the emulator in portrait mode then rotate it once started; the buttons appear as expected. This causes problems since the window is automatically scaled down to fit on my monitor; I did not find any shortcut to restore 1:1 scaling at runtime, after the rotation is done. This is important since I would like to see pixel-perfect results.
I am using SDK version 21 and platform-tools version 16.0.2, as updated yesterday.
Found the solution myself... this is a workaround that allows getting 1:1 scale and the software buttons working.
Leave the AVD (Galaxy Nexus or cloned from it) on portrait mode.
Run the emulator from the command line, using the -scale 1 option; this is the magic that forces 1:1 pixel perfect ratio even if the window does not fit in screen at startup. By default, automatic downsizing happens to fit the monitor.
Rotate the display using Ctrl+F11 or Ctrl+F12 to get landscape mode.