Using an existing Android emulator in IntelliJ Idea - android

So this is probably really simple and easy but I've been unable to find anything on the googles.
Once I've got an android emulator up and running from within IntelliJ Idea, and tested my project in it and then write a little more code, how do I push the new build onto the existing emulator?
I'm asking this because right now, I have to close the emulator each time and then relaunch the emulator again which takes forever to boot up.

For one thing take a look at the GenyMotion emulator it is way faster. There is a free version with a few of the bells and whistles disabled but it is way better than the AVD's provided with AS or Eclipse. Make sure you set a configuration for the app.

Related

Emulator slows down with each use

As i work in Android Studio 3.1.4, I have noticed that the Android emulator is blazing fast when I first open it. As I continue to use it, typically by clicking on the "apply changes" icon, it slows down over time until it is eventually no longer usable. If I then close the emulator and open it up again it reverts to being blazing fast.
This happens on multiple computers, all using Windows 10. One of the PCs even has an SSD hard disk. It happens in multiple apps, whether I have only one app open or multiple apps open.
Any thoughts about an easy fix for this? Thank you in advance.
I don't know why is doing that.I've heard about Genymotion emulator if you want to try(i haven't tried it yet though).You can give a try :)
Genymotion

Android Emulator is Blank

I have a mid 2013 Macbook Air (so I should have the resources to make the emulator work) and I'm trying to get the Android Emulator working. It's been half an hour and the color pinwheel continues to spin. In the meantime I looked up and downloaded Andy and BlueStacks Android emulators but Andy was nothing more than a clock with no buttons and BlueStacks, while it had a number of options there was nothing that seemed evident that I could get 'Hello World' running from the basic tutorial.
http://developer.android.com/training/basics/firstapp/running-app.html
I want to progress but I'm stuck. Thanks.
I would look into Genymotion. They have a great android emulator that can spin up vms for different phones. Its free for personal use and easy to use. The VM image is download directly from their server so when it gets corrupted you can delete it and add it again.
It is also recognized by Eclipse and Android Studio.
There should be two downloads, one that includes Oracle VM and one that doesn't. I recommend the one that does so you do not need to install Oracle VM by its self.
If that doesn't work post a comment and ill see what I can do.
try restarting your computer..
When you start an emulator you should "Store a snapshot for faster performance" in the Android Virtual Device (AVD) configuration or the emulator won't start at all. After too much time troubleshooting, it was as simple as that.

Emulator refuses to boot past Android screen

I am currently a QA intern at an app publisher and I use the AVD to test apps on various Android platforms and hardware builds. I touch nothing else within the Android SDK, just launch the android exec through the terminal and go from there.
I installed and started using AVDs with no issue about a month ago, installed the Intel HAXM with no issue, etc. It randomly stopped working for me about two weeks ago and I've been struggling with it since then. I've deleted everything from the Android SDK and reinstalled several times, tried using adb to no avail, nothing. I haven't been using Eclipse to get to the AVD Manager, but even when I do it makes no difference.
I've run into a dead end after trying every potential solution I could find on the Internet. Help me before I go insane.
Also using a Retina MacBook Pro, not that I think that'd make a difference, but just incase.
I am going to put this up as an answer just because I really found it to be the best solution to all of my native AVD issues (my default AVD emulators would creep even on my faster machines). I downloaded genymotion and must say that I am a million times happier with the emulation. It is faster, smoother, has more options, it just makes the native AVD look even worse than it already does on its own. Even if genymotion isn't for you, I highly recommend looking into third party emulators. It will make QA, development, etc. with Android that much easier. Assuming ARM isn't required (don't think it does ARM emulation)

Android SDK Emulator won't load

So i'm having awful trouble trying to get the Emulators in the Android SDK to start up. I can create the AVDs just fine, and then when hitting the 'start' button from the SDK Manager, bring up the small loading console window, indicating that the emulator is launching. However, after that, nothing happens!!
I have read many threads and posts with people having the same problem, maybe to do with the settings requiring too much memory, with some people waiting 30 minutes for the emulator to load!!
When trying to run the AVD emulator through terminal, I simply get a 'Bus Error' with no further indication of what could be going wrong...could it be a memory issue?
What I did to get where I am now:
Download the Android SDK package for Mac. I'm extracting the sdk only, not eclipse. I'm on Mac 10.6.8.
Install the SDK, and download the latest version of Android in the SDK Manager, along with default tools.
create a AVD and hit start.
window pops up to boot the emulator, that process is complete and window closes.
Nothing happens.
My knowledge of the sdk tools are very limited, all I want is to be able to do some testing...
Any help greatly appreciated!
Thanks
Actually, the simplest way to get emulators running right now is probably GenyMotion. They provide an interface, and pre-configured emulator images to make it pretty simple to get running.
This is not an endorsement (I use the standard ADT myself) but a lot of people find their tools useful.
Here is my suggestion: instead of using AVD, start using espresso and virtual remote android hardware emulator from Google servers - also known as android-test-kit. You will have the possibility to run and test you App on several different devices, without the need to spend money on actually all different devices for developing and testing purposes before releasing your Apps. You find further details here:
android-test-kit
Why Espresso
The 2 videos are somewhat long, but worth watching.
Taking this approach will solve your problem, save you money, and improve your productivity.
I run into the same issue on my mac 10.6 and it only works if i do
emulator64-x86 -avd my_android
Besides, my virtual device has to configured using x86 but not ARM
maybe this link can help you.

developing for android on android

I want to be able to develop and immediately run android apps on my device. I've played with sl4a and a bluetooth keyboard, but the app and ide weren't designed for what I want to do with them. what are my options?
clarification: I want a mobile dev env that doesn't involve any computer (other than my android device). I'd like a simple code editor, like emacs or scite ideally, and some kind of complete interpreter or compiler for the full android api that runs on the device. I'm dreaming, clearly, but how close can I get to that today?
I've gotten Vim working really well in ConnectBot on my Milestone. I needed root privileges because of where I put the files, but you might be able to find a work around without it.
See this link:
Native Vim for Android
See also my comment after the post. I've got $HOME setup on my sdcard, and a bunch of Python plugins and colorschemes in ~/.vim/ and everything just works.
Of course this requires you to be comfortable working in Vim... I've gone back and forth with it several times in the past. It is very strange, but once you pick up a few habits and figure out its odd vocabulary it is very nice to use!
I got a pure python version of Mercurial working on Android too. It was a pain, but now I can push and pull code from my repositories and keep my /sdcard/sl4a/scripts/ folders in sync with my latest changes. I documented some of what was necessary in a bug report to py4a.
Canonical just announced that they will be bringing Ubuntu to android devices. Hopefully this will help....
http://www.engadget.com/2012/02/21/ubuntus-full-desktop-os-coming-to-multi-core-android-devices/
Like FrinkTheBrave said, you can use an ide (Eclipse is perfect, because of the Android Development Tools, but you could use any other program.
If you work on Windows, and after installing the USB driver, you only need to plug your phone to the usb and hit Run (or debug), and Eclipse will copy the apk into your Android and start running. It takes less than 5 seconds.
If you work on a Mac, you don't need to install anything, just plug in the phone and it works =D.
Well, in Linux it is a bit more complicated (though not impossible, I actually work with Linux), but you can still develop there =).
Cheers
BIG BIG EDIT
I've seen today just what you asked few time ago. Here, take it: https://play.google.com/store/apps/details?id=com.aide.ui It's obviously hard to type on a smartphone, but it could do the trick on an EEEPad transformer. Have a good day
I'm not sure about developing on Android, but you can use one of the sdks available to write your code, then copy the apk onto the device via usb and install and run it.
It takes less than a minute from saving the source code to running on the target hardware.
I use the sdk at developer.android.com and eclipse on windows xp, and use AndroZip on my phone to install the sdk. simples ;-)
I've not looked into using usb debugging, but that could be even better.

Categories

Resources