After I installed HAXM and enabled HOST GPU, my screen for my virtual machine looks a bit off. The physical menu bar is now on the top, and to click any button you have to hover approx 10px above the button. So to click the top HOME button, i have to click 10px above the BOTTOM of the screen because the screen seems to be wrapped. Any help?
Try not to create it from snapshot. If it doesn't help re-create it.
This issue hasn't been fixed yet
androidprotip : Configuring an AVD to use graphics acceleration
You need Android SDK Tools rev 17 or higher, then start by creating a new AVD with the target value of Android 4.0.3 (API Level 15), using SDK rev 3 and System Image rev 2 (or higher).
If you want to have graphics acceleration enabled by default for this AVD, in the Hardware section of the AVD configuration, click New, select GPU emulation and set the value to Yes.
You need to make sure to hit enter when you change the value in the list before closing the dialog.
You can also turn on graphics acceleration at run time:
emulator -avd -gpu on
Related
Trying to use the AVD in Eclipse Kepler on Windows 7 Pro.
Nexus 7 2012 with the Level 19 (4.4.2) APIs and the Intel Atom processor.
Every listview, once scrolled down, immediately scrolls to the bottom and stays there. I can start to drag the list back towards the top, but as soon as I let up on the mouse button, it bounces back to the bottom of the list. This is for ANY list - system settings, app listings, etc., as well as my custom coded HTML5 app.
Has anybody ever seen that before? A Google search turned up nothing useful...
-Paul-
To solve this issue follow the steps below:
Click on virtual device manager and then select the AVD that you are using.
Now, click on edit and choose CPU/ABI as ARM.
Click ok and and run your project again. The scroll view will work properly.
I had the same issue - solved it by changing the Virtual Device to use ARM CPU instead of Intel Atom
(Change under Run -> Run Configurations -> Target -> Your virtual device -> Manager.. -> Your device -> Edit... -> CPU/ABI: Change to ARM)
I want to test my application on ICS/JB without hardware buttons. I configured Hardware back/Home keys to 'no' (image attached) yet buttons show up in the emulator (image attached). Am I missing something? SDK is up-to-date and Eclipse Version: 4.2.0 Build id: I20120608-1400 Thank You.
Screenshots(sorry, stackoverflow policy prevents me from posting images):
AVD Configuration:
http://postimage.org/image/44jppptjv/
Emulator: http://postimage.org/image/s9kf7fduj/
I believe there is an easier way, go to the AVD manager menu, edit the virtual device you want without hardware buttons and un-check "Display a skin with hardware controls"
I just downloaded the Android 3.0 SDK and booted up an emulator with it. I rotated the emulator to portrait mode with Ctrl-F12 and then opened and the activity that was build with 2.2 and the whole emulator is upside down ( as in the emulator is upside down, home buttons are on the top and screen is upside down) . Is there a way to rotate it the other way or am I missing something entirely? ( I have already tried doing Ctrl-F11 or the Num pad, same result)
open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu. It's only available from api-level 9 (2.3.1) and higher.
Well , there can be one of the 2 cases ,
1 - I misinterpreted your question , in which case i am extremely sorry
2 - The problem has been solved in the latest download of the android 3.0 Sdk(i just downloaded 1 right now )
Here , i am posting the screen shot of my AVD running 3.0 and a 2.2 Hello World Activity .
I had this same issue when I was forcing portrait by setting screen orientation to "portrait" in the manifest file. When I made my app support rotation, and switched screen orientation back to "unspecified" the issue went away.
If you don't want to support rotation, just change the manifest while you test, and before you open the app, rotate the emulator so it opens in portrait.
I encountered this problem on running the Android SDK (Eclipse) on an Intel (Core i5) Mac. I was able to fix it by disabling the "Use Host GPU" option for the AVD.
I had the same problem, in my case when I rotated the emulator to portrait, the "desktop" would show correct. However the app would run upside down.
(This worked for v4 Ice Cream)
So, in portrait mode, in the bottom right corner of the emulator, select the settings and set "Auto-rotate screen" to OFF.
Run the app now and it will show correct.
Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation or try to disable hardware keyboard.
The same thing just happened to me with a KitKat emulator whenever I setup the AVD with a default orientation of Landscape. Switching the default to Portrait fixed the problem.
The easiest way to tackle that problem is to just flip the display of your host system.
On the Mac you can do this in System Preferences > Display on Windows there is a keyboard shortcut: ctrl + alt + arrow key. (see here: https://superuser.com/questions/554589/how-can-i-horizontally-flip-invert-my-monitor-not-rotate and here: http://osxdaily.com/2010/12/28/rotate-mac-screen-orientation/)
And if you have a standalone trackpad you can just turn it around physically to have your mouse pointer move naturally.
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
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.