Loading...
Logo
Processing Forum
Processing 2.0a4.  JDK 6 update 26.  Android SDK with 2.2 minimum set.
Tried to also install JDK 7 but will not install, just dies.
 
I run Wolfram example. It opens the emulator if not opened and opens a second if already opened but the second closes in seconds.
Messages in console are as follows...
 
The console title bar shows... Lost connection with device while launching. Try again.
 
emulator: warning: opening audio input failed.
EmulatorController: Emulator never booted. NOT_RUNNING
ouch. Emulator got killed, I think.
Shutting down any existing adb server...
emulator: WARNING: Unable to create Sensor port: Unknown error.
 
Any advice please?

Replies(6)

Make sure you start the Processing application with Administrator priviliges (on WIndows 7, this means right-click->Run as administrator)
I'm a newbie as well and I have the very same problem.
I've tried right-clicking and running Porcessing as adminstrator but results are the same.
Any further advice?
Try starting the AVD manager yourself (from something like C:\Program Files (x86)\Android\android-sdk-windows\AVD Manager.exe), again with Admin privileges, and start the Processing-xxxx Virtual Device. Once you have that up and running (ie, the emulator shows a proper phone launcher screen), do Run in Emulator in the Processing sketch (in fact, probably best to just do it from an empty sketch). Does that still fail?

First of all let me make clear I’m running Processing 2.0a4 on a Windows 7 32bit machine.

Launching AVD manager, selecting and starting a virtual device (from within AVD manager), waiting for it to initialize, keeping it running and only then trying to run the sketch DID WORK on my machine.

Furthermore, it didn’t make any difference, whether I launched AVD manager from command line or from within Processing, or whether I ran it as Administrator or not. In both cases it worked. The critical point to note is … “Wait for the virtual device to completely initialize before running the sketch”.

It might be a workaround, not a real solution to the problem, but it does allow me to test run my sketches. Thanks a lot. You saved me a lot of time and frustration.

Great, glad things worked out. There are a lot of moving parts here, so sometimes the only solution is to tweak it until it works.
Hi,


I have a problem similar to this one. But, even if I wait for the emulator to fully load and initialize it still looses connection. 
I tried launching both from administrator priviliges and without and also tried launching it from within Processing. With the same unconnecting results. I am using Processing 2b03 and Windows 64 bit. Not only does the emulator remain unconnected, even if I connect an actual physical device it doesn't connect to that either. 
Please, if anyone has any idea what to do or how to fix this I'd really apreciate it.