如何启动内置​​的录音机应用程序? [英] How to start inbuilt voice recorder application?

查看:118
本文介绍了如何启动内置​​的录音机应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要的声音记录文件附加作为附件到我的android应用。我已经创建了语音录制一个独立的活动,而无需使用内置语音记录器应用程序,它的正常工作。

I have to attach voice recorded file as attachment to my android application. I have created a separate activity for voice recording without using inbuilt voice recorder application and it's working fine.

我想用内置的应用程序'录音机',而不是用我所创建的活动的。

I thought of using the inbuilt application 'Voice Recorder' instead of using the activity which I have created.

我知道,使用意向,我们应该开始新的活动。但我无法找出如何启动内置​​的录音机应用程序以及应如何从我的应用程序打开?

I know that using Intent we should start the new activity. But I'm not able to find out how to start inbuilt voice recorder application and how it should be opened from my application?

请让我知道,如果任何人有处理这种情况的经验。

Kindly let me know if anyone has experience in handling this scenario.

在此先感谢!

推荐答案

您可以试试这个

public static final int ACTIVITY_RECORD_SOUND = 0;
Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); 
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

这篇关于如何启动内置​​的录音机应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆