I work under windows vista.
I have been searching for some time and I can't find a detailled tutorial on how to easily record and then read audio on the emulator under eclipse.
I have yet found these steps:
- You have to install a virtual sd card with mksdcard.exe 1024M sdcard.img
-then run the emulator : emulator.exe -sdcard sdcard.img //where sdimg.iso it is the path to the sdcard
-then run adb.exe : adb push hello.png sdcard/hello.png //just to check if the sdcard is correctly connected
-then you should put :
-then there is some code to implement which should look like :
-then you should stop with :
-then you should play it. :
I have also heard about : http://code.google.com/intl/fr/android/ ... tml#sdcard in this page of the manual (~1/4 of the total scroll), there are some informations about "Emulator Startup Options", one of them is about Media -audio <backend>.
I couldn't find much about that backend thing, google didn't said much about it. I still don't know if it's important to the audio recording process.
EDIT : under windows the <backend> is winaudio. (found using emulator -help-audio-in)
But it doesn't work with audio-out and audio-in at the same time for me.
emulator: warning: opening audio output failed
audio-out works alone
I tested it with the sample provided with the sdk when reading ressources. It doesn't when trying to read the sdcard."
However, the adb logcat says this repetitivly when I click on record with audio-in:
D/AudioHardware< 25>: AudioStreamInGeneric::read<0x40308160, 320> from fd 7
The fact is all these steps are pretty blurry to me, and I believe I am not the only android newbie trying to record some sound
Anyone knows where we can find a complete tutorial "for dummies" teaching this feature?
Did I make a mistake somewhere?
Any clean and simple source available somewhere?
Any help is of course greatly appreciated