我想在程序中录制声音,在一些设备中可以正常的运行,但是在 Samsung Galaxy 中却出现以下的异常:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }
我使用的下面的代码:
Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);