Android Emulator looks aliased or pixelated (Even with increased font and display size within android) - android-emulator

pixelated view in android emulator
It start giving me pixelated view after upgrading android studio
Downgraded emulator to previous version still giving me pixelated view
Changed dpi, override dpi settings like mentioned in other solutions doesn't work
Currently using my phone for now
Pc Specs
6 core intel cpu
rx 580 8gb GPU
16gb ram
1360x768p display resolution with 100% scaling
Emulator has pixel 4 device android 11 with default setting

Related

Camera image rotated 90 degrees when taken in landscape mode

I have recently upgraded to flutter 2.10.5 and the camera plugin to 0.9.5.
After this upgrade, taking a picture in landscape mode displays it 90 degrees rotated.
Any ideas if this is a common issue now?
I can reproduce on my Galaxy S10 and also on the android emulator in Android Studio.
The FlutterExifRotation plugin doesn't correct the orientation (but it does on iOS).

High Memory Usage - Unity profiler shows that a single font texture takes up more than 150 MB of memory on android device

While trying to optimize a Unity game I discovered that font textures take up a ridiculous amount of memory on mobile devices (tested on Android - OnePlus 6). The texture does not seem to be cleared between scene switches, unlike the Editor, where the maximum size of a font texture is 4 MB at all times (even in the same scene with loads of different text elements) and does not climb any higher. Meanwhile, opening new scenes/windows with different texts increases the font texture memory even more and more on my phone. The attached image shows the profiler snippet when profiling my OnePlus 6 phone, after navigating to multiple scenes and opening different panels with various texts (which were using the same font).
My question is: what can I do about it - is it a bug or a feature? Why is the allocated texture memory not cleared/reset as it is on the Editor?

Smart tv resolution issues

I am creating the samsung smart Tv application for 1280 x 720. I am using 4.1 sdk. I designed my html also with the same resolution. But the problem is when i checked it in the emulator it is not showing the full content.
My Html view:
My emulator view
when i click the down button it is showing the below content but it is not displaying the contents from the margin even if i prss the left button.
can anyone help me.
Samsung TV browsers run at a resolution of 960x540 and then are scaled up to fit the physical resolution of the screen. You should design for that size.
Widgets on Samsung Smart TV 2011+ support 960x540, 1280x720, widgets on 2012+ supports additionaly 1920x1080. See samsungdforum.com guides.
Samsung Emulator correctly supports only 960x540.
You should test your markup on real device.
Check your widget.info files, Samsung TV Apps store what resolution used in this file.
The default is 960x540 so your UI is cutted.
For 1920x1080 resolution is not suggested since the Smart TV Series 4 (ES4XXX/F4XXX) only support resolution up to 768p and causing the apps with 1080p failing to start or just give black screen.

Platform 4.0.3 x86 - How to run the emulator in phone mode at higher resolutions

Any idea how to run the emulator in phone mode for 720x1280 res in 4.0.3 platform?
(without using avd)
Running with the parameter: emulator-x86 -skin WXGA720 starts the emulator in tablet mode. (curiously in 4.0.4 it starts in phone mode - hardware.ini and layer files have no difference)
Anybody has the answer?
Thanks,
Asi
Can you define what you mean by "phone mode" and "tablet mode"? As far as I'm aware, Android makes no such distinction.
If you want to run with a custom screen resolution, you can set the resolution manually rather than using a skin name when running the emulator creation command, e.g. to get a Nexus 7-like device, where it's in portrait by default:
android create avd --name nexus7 --target android-16 --skin 720x1280
Though as there currently isn't a way to set the screen density (or other hardware properties) from the command line; if you want to do so, it's better to do this from the android GUI.
In platform 4.0.3, when running "emulator -skin WXGA720", for some reason the emulator does not read the hardware.ini file under development/tools/emulator/skins/WXGA720/
The reason that the emulator opens in tablet mode is insufficient lcd density. In hardware.ini it is set to 320 but the emulator does not interpret that and sets density to 160.
The solution that I was able to find is hacking emulator hw load properties.
in external/qemu/vl-android.c
change the line
long density = android_hw->hw_lcd_density;
to
long density = 320;
Of course at the end, make the platform.
Note: If you would like to show the system bar (the home and back buttons)
in external/qemu/android/hardware-properties.ini
set hw.mainkeys to no
Asi Mugrabi

Any trick to speed up Android 4.0 emulator?

I have rather strong dual core PC with 6GB RAM and yet Android 4.0 and 4.03 emulators are very, very slow.
Is there any trick to speed up this emulator or I would have to buy a new i5/i7 processor (like suggested in some other post)?
I am asking this as we've managed to speed up emulators in the past so there's got to be some trick to make it faster (both booting and working).
Try to scale screen size of your emulator to a smaller size.
For examples:
Screen size (in): 3 or 4
Monitor dpi: 160