2011-05-09 84 views
0

我想從應用中捕獲音頻。從android應用捕獲音頻

我用:

Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); 
startActivityForResult(intent, Constants.RESULT_UPLOAD_AUDIO); 

當我點擊捕獲音頻按鈕,我返回到onActivityResult應用程序(INT requestCode,INT resultCode爲,意圖數據),其中數據爲空。

它工作正常的視頻:

Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); 
startActivityForResult(intent,Constants.RESULT_UPLOAD_VIDEO); 

回答