魅族手机调用系统录音功能崩溃
夕阳晚照 2017-06-21 11:02:54 代码如下:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("audio/amr");
intent.setClassName("com.android.soundrecorder", "com.android.soundrecorder.SoundRecorder");
startActivityForResult(intent, 3);
另外一种方法:
Intent intent_audio = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent_audio, 3);
两种方法都崩溃,出现ActivityNotFoundException。这种情况只出现在魅族手机上,求大神解惑。