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

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

Related

Electron transparent window on raspberry pi (4)

As demoed here Can't succeed in making transparent window in Electron (javascript), I manage to run the hello world application on a debian buster with background transparency.
However, when I try this demo on a raspberry pi 4 (raspbian desktop), it doesn't work out of the box. I read here https://ourcodeworld.com/articles/read/315/how-to-create-a-transparent-window-with-electron-framework that it could be caused by some driver bugs.
Can someone help me understand the issue with more depth ?
The need in my project is to display an HD video in the background and a few buttons in the foreground. Chromium-browser does not benefit as much from the hardware acceleration as omxplayer does (and drops frames), so I'm trying not to embed the video in the browser. Instead, I plan to have the smooth omxplayer run in the background and display an electron app with transparency.
(Pi 4B)
Doing some looking into openbox, the docs here say that you can use:
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
I tested it, and it works with the parameters specified here. You can set the xcompmgr command to run in an autostart file when X initializes.
EDIT: In my testing, the latest electron build where transparency works correctly is electron#9.2.1.

Android emulator stays minimized (eclipse, windows 7)

This is an issue that happens to me just sometimes, most of the times the emulator works ok.
screenshot of the problem with the emulator
The thing is, that the emulator starts but it can not be maximized. It doesn't matter if you click on its "window" from the Tasklist at the bottom or you try to force it to maximize/make it go to the front from the Task-manager; it just doesn't react to it.
In the little window that appears when you have the mouse over the task (see screenshot), you can even watch the emulator starting and waiting for the interaction with the clock and so on, but it is not accessible.
Any ideas?!
I had the same issue after forcing the emulator to close during debugging.
To fix the problem, try changing the screen resolution of the virtual device under Edit in the AVD manager and then launch the virtual device.
This fixed the issue for me and I was able to revert to the original resolution without any problems.

BlackBerry 10 Dev Apha Simulator Size Issue

I want to do some magic with BB. So I decided to go with BlackBerry Cascades. For that I downloaded Native SDK (772 MB) and Simulator (242 MB) and Photsjop plug in. I installed Native SDk and simulator and I opened the Simualtor in Vm.
Till here there is no issues., but when Simulator opens Size of Simulator is too large like there are scrollers to see the complete Simulator. How to fix the size of simulator with according to the vmware size.
I changed the Value in Controllers.exe, but it doesn’t get differences. So please let me know, how to solve this issue.
Hi You can resize you Vmware simulator according to your monitor screen size.following is the steps for that.
1. Go to where the simulator Vmware is installed (in my case: C:\Users\\Documents\Virtual Machines\BlackBerry10Simulator-BB10_0_06)
Go to the "controllers" folder
Run "controller.exe"
Select Connection > Connect
Type the simulator's IP address and press Connect (verify it says "Connected to 192.168.xxx.xxx" on the bottom of the screen)
Go to Device > Change Zoom Level; enter 40% or percentage then Apply.
Sometimes controller doesn't work as you expect.
I use following way to change simulator's zoom. Connect to the simulator using telnet with login/password devuser/devuser. Then put the command ves-zoom <zoom_value>
Where zoom_value is the percentage value of desired zoom.
Look at Simulator Configuring to clarify.

Blackberry 10 Development

I am developing an application in Blackberry 10. I have installed QNXMomentics for development, and Dev alpha Simulator for debugging. For running application in QNX need to specify the IP Addess from device or simulator. But on my simulator it does not showing the menu, Only the welcome screen is showing in the simulator , What the problem here
In context of your problem, Richard gives you idea about how to connect you simulator or device to your IDE you can find out one more option there is AUTO DISCOVER.
On startup of your loading your simulator on VM player their are two option for selecting screen type:
BB10DevAlfaKeyboard
BB10DevAlfaKeyboardSafe
Try 2nd option.
(*This setting for simulator debug only)
Your blackberry simulator device get stuck on welcome screen, I think this happens because of your PC hardware configuration little bit low, for first time it will take time
you have to wait till you didn't get HOME SCREEN of your BB Os 10 on your simulator.
On the simulator home screen, at the top, near the time you should see an icon that looks like a person with a gear inside. Selecting that icon will show you the IP addresses assigned to the device.
Or Run->Debug configuration...->Add new target->auto discover

Emulator Problem

When I'm lunching an app the emulator is to big for the screen and it is on the side.
What to do?
Thanks,
Nahum
You should learn emulator tutorial and also see here: emulator
The emulator screen can be rotated by pressing:
F11
7 on your Number pad
Which one to use may vary by machine.
Just try it by changing orientation or you can reduce screen resolution when you create avd it'll ask for skin select hvga.If you want to modify current emulator screen size just go to window--->sdk and avd manager--> and it'll display list of avds you have select one avd and edit it's skin property to hvga or whatever you want.