Android Emulator not rendering correctly - android

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 :)

Related

Android emulator device is too big for the screen

Hello i'm using Android studio version 4.1
I'm having a problem when Open android emulator, the size of the device is too big and the screen is only displaying on the top left corner.(see attached screenshot)
I have already tried:
-changing the device
-changing the system image
-changing the screen size in by editing the device in the AVD manager
-changing the dimensions by editing the device in the AVD manager
Nothing worked, could you please help me.
Excuse me if I didn't get the question - you should be able to resize the emulator by dragging the corners of the device. Please see the screen shot where the blue dots are located for example.
Run the Emulator,
open Task Manager and find this Emulator's process
Right click on it and pick Open File Location
Once you are at the file location, right click on that file and Open Properties
go to Compatibility tab
choose Change High DPI Setting
Mark the Checkbox saying Override high DPI Scaling behavior and Choose System from the dropdown
Worked for me! Hope it works.

How to remove the device's frame on Visual Studio Emulator?

I only need what's relevant for the development and testing. I don't need the huge "emulated" dumb bezel area mostly good for grabbing and relocating the emulator window. Even the real devices start to eliminate those bezels nowadays.
I don't need the directional clues about the device orientation it provides. Just small grabbing handle should be enough on the tool strip or in the main window.
It wastes screen real estate and makes tiling besides other useful windows hard or inefficient (even with my double monitor setup).
How can i hide or remove it?
It no longer works: if I remove the properties (using the small trash button or leaving them empty), the manager will restore them. (My version: Xamarin.Android SDK 10.2.0.100)
But I've found another solution:
Open Android Device Manager from Visual Studio.
While your device is powered off, click the "..." in the top right corner
Select "Show in explorer"
Edit the file "config.ini"
Remove the skin.name and skin.path properties and save file
Start the device!
Open Android Device Manager from Visual Studio.
While your Device is powered off Click Edit
Find the property skinname and clear the value (leave empty)
Find the property skinpath and clear the value (leave empty)
Click Save & Start Device.
Worked for me
Show in Explorer now called : Reveal in Explorer
And you can just add // before skin for example:
//skin.name=pixel_xl
Open Android Studio -> Tools -> AVD Manager -> Pencil Icon next to Your Virtual Device -> Uncheck 'Show device frame'

Screen Size in Eclipse Simulator

I'm going through a simple example - I'm using Eclipse -
When I click on the "run" toolbar icon, my app start screen is shown (as I was hoping for) but the entire droid simulator is huge / too large.
I searched and found that I should go to Window - Android SDK and SDK Manager. The highlight my simulator and select start then click Scale Display to Size and then enter the dimension. Then Click Launch.
When I do this procedure I get a generic android window -I can slide the start bar and so forth but I do not get my start screen of my program (set up in the main.xml).
Can you help resolve this?
In Eclipse if you Select the Android SDK and AVD Manager in the Window drop down menu.
You should be able to change the screen size of your Android Virtual Device (Emulator) there.
Look up the resolution of the device you're targeting. E.g. QVGA for the HTC Wildfire.
If the emulator resolution is correct, you can ask the emulator to scale itself down using a command line option -scale
From eclipse, you would add this as Additional Emulator Command Line Options
Project | Properties
Select Run/Debug Setting
Choose the Launch configuration, select Edit
Select the Target Tab
You may need to grow the dialog here to see the additional Emulator launch options.
Here you can add a -scale option.
-scale .5
works for me
Project | Properties Select Run/Debug Setting Choose the Launch configuration, select Edit Select the Target Tab You may need to grow the dialog here to see the additional Emulator launch options.
Here you can add a -scale option.
-scale 0.55
works for me PERFEKT^^
Ooor..
You can download the HTC Wildfire skin (like I just did) with all of it's sweet keys and stuff all over the skin :) I'm lovin' it
Link to the skin and instructions to use
Now I have to figure out how to make it look just like the original device's OS. I believe that the last version for that HTC is 2.2.1 (API 8), but somehow looks quite different..
Another "on the fly" solution would be to start your emulator from the Android SDK & AVD Manager :
select your AVD, press start, check "Scale Display to real size", and have fun finding the size you want !
I use this often for debugging as the execution is a bit smoother on slow PCs like mine.
Hope this helps !
You can use the command line option -skin [height x width], for example -skin 320x480
You can start the emulator using the desired AVD from Android SDK & AVD Manager, then with Scale display to real size set the desired size.
Your application will not be launched, but next time you launch it, it will be done using the existing AVD if required properties match.
If it doesn't happen, select your project and Run -> Run As -> Run Configurations... -> Android Application -> Your application -> Target -> Deployment Target selection mode -> Manual

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.

How to take emulator screenshots using Eclipse?

I need to take screenshots of an android application running on an emulator in Eclipse Galileo.
Is there a built-in feature for this or do I have to download a plugin of some sorts?
You can take a screenshot if you open the Android view "devices" (under Window --> Show View --> Other... --> Android --> Devices). Click on the device or emulator you want to take a screen shot of, then click the "Screen Capture" button (it looks like a little picture, and it should be next to a stop sign button). Occasionally the device won't immediately load the picture; sometimes you have to close/reopen the screen capture window.
This is equivalent to taking a picture via DDMS, but you can do it in Eclipse instead of opening another application.
Screenshots on Android Devices using Eclipse, a Visual Guide
In the DDMS perspective in Eclipse there is a "Screen Capture" button. (Make sure you have your Android SDK and Eclipse plugin up to date, not sure this was always an option). Just press that button and a screenshot of whatever device you have DDMS connected to (either a real Android device or the emulator) will be created and opened in a new window where you can save it as a png.
You load the emulator with your app normally, through Eclipse, but you take the actual screenshot from DDMS, a tool that's included in your SDK, under the "tools" folder.
In DDMS, press Ctrl+S to take a screenshot.
1-open the DDMS prescriptive,the right click on mouse.
2-there click on export screenshot.
3-then it will show you option to save your file as .png file,with whatever name you like you may save it.
I just do a control print screen, which copies the image into the clipboard, then open MS Paint then do a control Z. Then you can crop and size it to your liking. Is this ok?

Categories

Resources