zaterdag 20 september 2008

Sound in the Android emulator

The Android application I'm developing needs sound, unfortunately I couldn't get sound to work!

How to check sound:
The easiest way to test whether you have sound working is to click on the volume buttons (right-hand side of the emulated phone).
Another way to check if something is wrong is the message "using stubbed audio hardware" in the startup log. My solution doesn't remove this line though.

Failed attempt using symlinking:
My pc runs Linux (Gentoo) with Alsa sound support. The emulator searches for /dev/eac which is not present on my system, so the first thing to do was to make a symlink to /dev/dsp. This failed, but I'm not excluding this method might work. Let me know if you succeeded.

Solution using OSS audio:
start the emulator with the following options:
./emulator -audio oss


OSS is the older audio stack for Linux, I'm surprised it worked but hey, at least I can continue developing now!

vrijdag 5 september 2008

clouds on your phone, new sensor, uptime

Just an update on cloudwatch.net uptime: the hosting is back at my place but now we're renovating which does bad things to the fulltime availability of electricity. And did I mention the telephone cable was ruptured (so no ADSL for a few hours)? Nonetheless I expect the worst to be over.

In other news, I've been developing an Android phone application which will connect to the cloudwatch.net website and alert you on cloud status - without you needing to turn on a pc! Since most of the android-capable phones will have wifi this will not cost you in mobile data charges.

There's also a new cloudwatch sensor on the market, have a look at AAG Cloudwatcher. It should cost 300 euro or less. I'm looking into providing support for this sensor, input from people actually owning one is appreciated (I'm also still looking for boltwood sky sensor owners)