Record Sound
android.provider.MediaStore.RECORD_SOUND
Start SoundRecorder application to record sound.
Read also the Android documentationUse
public void startRecordSound() {
Intent intent = new Intent("android.provider.MediaStore.RECORD_SOUND");
if (intent.resolveActivity(getPackageManager()) != null) {
startActivityForResult(intent, REQUEST_CODE);
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) {
// handle result
}
}Example intent filter
<activity ...>
<intent-filter>
<action android:name="android.provider.MediaStore.RECORD_SOUND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Apps Providing an Implementation
Search on Google Play, AppBrain, Amazon App store or similar (not yet available - please make this happen!)