Using microphone in android emulator (Java + Android beginner) -
i read here using microphone might possible in android emulator decided try out (although answer this question says it's not possible)
copy/pasted code provided in android developers website , added
<uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.record_audio" /> to manifest well. interface shows up, 2 command buttons, 1 start recording , 1 play recording. text on start recording button changes stop recording once press it, if press on stop recording button, application sort of hangs , crashes (unfortunately, mic rec test has stopped.). logcat gives out message
e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input e/audioflinger( 40): error reading audio input over , on , on again. in fact, it's still doing writing question. mean, , why did program crash when clicked stop recording?
---edit---
checked emulated virtual device detail properties clicking on details... button in avd manager , in avd details box, can see hw.audioinput set yes. means recording audio emulator should possible shouldn't it?
--- edit 2 ---
why impossible use speech recorder on android emulator?
i saw emulator comes built in speech recorder app, problem still same, moment click on record, crashes. that's fair enough, why have speech recorder app in emulator if emulator not supposed work sound input? or missing here, , in fact possible sound recorder working?
it seems audio features not work if emulator has been started using snapshot. without snapshot, audio features still may or may not work depending on computer. please see here
Comments
Post a Comment