When I launch the android emulator through eclipse for the first time, its menu shows all the test apps that I have created. But when the launch a second instance of the same emulator, its menu does not shows any of my apps. How can I install my apps on the second emulator as well? I need to have an application installed on both the emulators to test it.
It happens because you can't run two emulators simultaneously. In fact you can but second emulator will not use emulator image files - second emulator will not use previously saved data and will not save any changes. Two emulators can't use one emulator image file simultaneously. You can read about emulator image files here.
Solutions:
You can install your application on second emulator after launching through Eclipse or adb.
Or you can create another "emulator" (AVD file). How to do it.
In eclipse you can run the app in the desired emulator. Just click the run button and choose the emulator you want to have it to run in. The apps are in the other emulator because you used that emulator apperently all the time. When you wipe user data at launch of the emulator all the apps are gone.
So just run it in the other emulator and it will be available from the menu.
Related
I opened AVD,clicked on create a virtual device then I choose nexus 5 ,clicked next and selected KitKat and pressed next,and then clicked finished. But then it just takes me to the home window of AVD which was there when I opened AVD. I cant know for sure if the device was created or not even. Can any one help me out please.If its generaring any error message where could I see it?
avd takes lot of time to open, so you will have to wait sometime
i will suggest you to use your android mobile for running your project that way you dont have to wait.
follow this tutorial
https://www.youtube.com/watch?v=Qb2olFyoMV4
What i did was opened android studio from my terminal,then did the whole process again.the error was dumped to my terminal and it was the problem of so many files in my /home/kirubel/android/sdk/tools/ directory didn't have the read-write permission.so when i changed that it worked.
As alternative you can use Genymotion or droi4x or Nox app player for me it's better than AVD ( you can debug your app directly to droid4x or Nox app player like you are using your android phone via usb )
Unlike iPhone/iPad Emulator, Android Emulator doesn't remain active in AVD.
Once (for first time only) I run the app on emulator, it works, quiet slow though.
I go back in the code, do some changes and try to test new code on emulator, but for second time, the existing emulator doesn't show up in the AVD Manager list. Yes, after last debug, I came back to home screen, retried to Run, AVD Manager pop up and shows me only my android phone connected but not the emulator.
I tried this(Eclipse not running Android app on emulator a second time) answer already but it doesn't solve my problem.
I am using YouWave for Android in a remote desktop environment with Atrust Thin Client T60 series. When I run the YouWave emulator, a black screen appears and it stops there.
Also the home, menu and other buttons (except rotate button) does not work. When I tried to run an app it says
Android OS not ready.
When I open YouWave for a second time, it says
Another YouWave for Android is already running or previous run is cleaning up.
This repeats even if I tried to open waiting for few minutes. Is there any remedy for this?
A better alternative to YouWave or Bluestacks is GenyMotion
it is the fastest emulator ive ever used, everything works
to use it first visit the website, signup for an account then download the genymotion application. It works with Windows, Mac, Linux/Debian Linux.
After installing it, login using the signed up data & you will get a list of devices.
These are images of various physically available Android devices like nexus 7, nexus s etc. Download the desired device image.
These images are rooted & some with gapps, you can link the emulator to the android sdk for directly testing your app in the emulator. This emulator is so awesome that you can change the resolution of the device. you can add a shared folder using virtualbox, the shared folder is located # mnt/shared/
Try this and start again the YouWave
Go to Start > Run (or press Windows + R)
Copy and paste the bold text to the dialog box: %USERPROFILE%\.Virtualbox\HardDisks
Delete or rename youwave_vm01.vdi
Copy and rename youwave_vm01_golden.vdi to youwave_vm01.vdi
NOTE: youwave_vm01_golden.vdi is a clean Android instalation, keep a copy at all times.
I recommend you to use BlueStacks.
I am using it, and it's working all right, i was also having issues with YouWave.
In the last 36 hours, I've managed to screw my eclipse settings .. from being able to run my app, to now not even launch the emulator properly.
I think it started when I modified the AVD's SD card size and added a camera. Since then I've deleted the AVDs and recreated them. But eclipse now takes 20-30 mins to launch the emulator, and fails while trying to install my apk. When the emulator finally runs, I can't find my app so its not as if its installing and only failing to launch.
Also I bought a new Alcatel Onetouch 918n phone. After some painful steps, I now see "Alcatel Android ADB interface" in Device manager. But I just can't seem to make this phone visible to Eclipse/ddms/adb.
I don't have many logs to paste here- not sure what I should include. HELP!!!!
Have you tried just creating a new virtual machine? A lot of times changing sd card values ect can make it take much longer to load as well, you can also export to the .apk and load it onto your phone manually to test (tedious).
I'm trying to run the very simplest app on MonoDroid though the MonoDevelop IDE - i.e. the one that is created as part of the new project (the one that increments the lable on button clicks - i won't post code as I don't think it is relevant unless someone really wants it).
When I press the run menu item then run (or debug) i get the emulator selection
I dutifully start the emulator - (I've tried API_7, API_10, API_12) and that works OK. But the IDE above never refreshes to show the currently running emulator so I can't launch the application. I have manually refreshed but the same list comes up. What I am expecting is the new emulator to appear in the list and the OK button becoming active.
I have tried running adb devices in the command line and I can see that the debug bridge has picked up the device i.e. it says emulator-5554 which matches the TCP/IP port that the emulator is running on.
I've also tried restarting the debug server i.e.
adb kill-server
adb restart-server
But I can't see the emulator appear on the above dialog. The debug server is running on port 5037. Could the IDE be listening to a different port?
Fundamentally I'm trying to get the simplest app running through MonoDevelop. And I'm failing. Please help good people.
I had the same problem initially when I tried running the emulators. My recommendations from my own experience would be to:
Run the Android SDK manager and retrieve all the latest SDK packages.
Create your own Android Virtual Device via the AVD Manager rather than running those that are listed when the IDE is intially run. You should then start the AVD manually via the AVD manager and ensure it is fully loaded before starting the de-bug.