When I open the android emulator, it stays on a black screen.
The app I'm testing is small and basic.
I have the arm* type downloaded, and I set it to 300 RAM, but still nothing.
Emulator have many issue if you want good & fast emulator then uses genymotion Download from link https://www.genymotion.com/#!/. you will get different type of device and fast devices then emulator.
Related
I'm following an android development course on Udemy. As I have an AMD processor, I have to run an emulator with ARM image. I'm running a nexus 5 emulator that way. It is super slow but it is working.
However, I can't drag or edit anything in real time on the emulator. The instructor video has him dragging the text box, changing the size and style of the text etc in real time. I can't do that on the emulator.
Is there a work around this or am I missing something?
I'd like to be able to do this http://imgur.com/a/sQD6N
At this moment emulator is no different from testing on a physical device, I do have an android phone.
Thank you for your help
I made an android project in android studio & test it in real device it works fine but now i have not real device with me & want to run the project in Emulator. I install the AVD & intelhaxm-android.exe from the directory
C:\Users\INZI\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
after that I created Virtual Device to test the app but when I run this it shows black screen with android printed in the centre of the device but does not show the home screen. I tried it with the
Visualization technology Enabled in BIOS setting. what should I do now I waited about more than a half of the hour but its same.
Please help
Thank you in advance
I resolved the mentioned problem Emulator was not showing the home screen because
I have more size of virtual Device than Haxm
I haven't completely downloaded the API with which I was testing.
Now I set less size of Virtual Device & test the app with the lower API that I fully downloaded .... now its working fine.
If I were you, I would try Genymotion which is a much smoother emulator than the default. Furthermore, you will not run into any problems while setting it up as the program handles everything for you. Of course, as you become more experienced, you will want to debug your apps on a real device but as you do not have access to one, Genymotion is your best option.
I have used Eclipse to write apps for android multiple times without issue but I am now trying the new Android Studio which I like but here is my problem.
When I run the app I pick my AVD and then tell it to start. The emulator starts loading and then says paired. Then it starts telling me to swipe up and left and right to display and remove cards. Then it says to put hand on screen to dim the screen, ok well I'm on a MacBook Pro so that don't work I swipe to get past that part sometime I can others I can't. Next it says to touch the clock and say some words which also can't do on my Mac, and that is where the emulator stay it never goes to a home screen and it does this no matter what AVD I choose. How can I get the Emulator to just plain open to the home screen like it should.
Thanks for any help.
In your AVD Manager, edit your AVD and make sure your Target is "Android L" and not "Android X.XW". The "W" stands for "wear" and that is causing your issue.
Alright I figured it out. I remember having a similar problem recently when I was taking an android development class for college using eclipse and sure enough that was it.
So here was the solution eclipse gave same problem. for some reason if you have caught exemptions such as hard coding a string etc. the emulator will not run till you ignore these exemptions or fix every last ! mark in your code. Once you do this the emulator will load and run properly.
I also had the same problem with my AVD. The Android Emulator window just used to pop us and the green bars flowed infinitely. After lots of trial and error I arrived at a solution for my problem. the problem was with the Heap size and the RAM size.
Initially the default heap size was 128 MB and RAM was 1563 , I just changed the heap size to 512 MB and reduced the RAM size( high RAM was making my PC run slow) also I enabled hardware acceleration. And Yipeee, it worked.
I just started using genymotion and I really like it.
One thing that is frustrating me is that emulators take a lot of screen space and are contained within scrolling window.. which makes it less convenient to use
I tried to change screen resolution or look for some kind of option myself but with no luck
is there "scale to real device size" option like in sdk emulator?
UPDATE
when I start genymotion binary, get the following in the console
~/coding/genymotion$ sudo ./genymotion
Genymotion log file: /home/u238/.Genymobile/genymotion.log
Player log file: /home/u238/.Genymobile/genymotion-player.log
OpenGL connected to 192.168.56.101:25000
Port 22468 will be used for OpenGL data connections
The emulator shows up for about 5 sec.. black screen with white ui buttons on the right.. and then it disapears from screen
UPDATE
[facepalm] to solve the vanishing emulator just install graphic drivers supporting opengl 2
GenyMotion Virtual Device opens and disappears immediately
Ok I get it.
You're not running the Genymotion player but Virtual Box. Try to run the genymotion binary (the one where you downloaded the templates) and to launch your VMs from it directly. It brings a lot of improvements.
this may be a stupid question, but I've been doing Android Development for quite some time but just installed the new version of the SDK and ADT Eclipse plugin.
I've noticed that when I create a new AVD I can choose a specific device, I.e. Nexus 7 or Nexus Phone. I've selected the Galaxy Nexus but the emulator doesn't fit on the screen so I can't see the bottom of the device. At the moment I'm working on my Desktop which has a 21 inch monitor (1600 x 900) not the most highest spec in the world but I want to be able to fit the device on the screen. I also have a secondary screen which I usually keep the emulator on so I can see the code and the emulator, handy for debugging purposes, but this screen is much smaller and only has a resolution of 1280 x 800. At the moment, it would be impossible to press on the back and home buttons, and if I do development on my laptop, which is obviously a much smaller screen, probably wouldn't be able to see most of the device, as the AVD doesn't seem to scale to fit the screen.
Is there a way that this can be done. Below is a screen shot of how the device looks on my screen.
Right click your project -> Run Configuration -> select target -> in additional emulator command line option text box, type '-scale 0.75' and run your app
For those using Ionic CLI or other solutions, the following worked for me:
ionic run android -scale=0.75
In Android Studio, the option is set in the AVD Manager, under "Startup size and orientation".