Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用意图开始录音活动,但是当活动打开时它不会开始记录。我怎样才能自动开始记录?也许有一些额外的东西可以做,但我在互联网和 android 开发人员上找不到任何东西。这是我的代码
Intent intent=new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); context.startActivity(intent);
我知道这是可以做到的,因为我找到了一个可行的例子。但我无法复制它。先谢谢了XD
您正在启动另一个应用程序来进行录音。它将在该应用程序需要时启动。如果您想立即开始,请使用 AudioRecord API 并自己实现录制。