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.
開始時刻から2分後にAudioRecordを停止する必要があります。MediaRecorderではsetMaxDurationを使用しており、これはうまく機能しますが、AudioRecordでも適切なアプローチが必要です。
手伝ってくれてありがとう
このように試すことができます。
handler=new Handler(); Runnable r=new Runnable() { public void run() { recorder.stop(); recorder.release(); } }; handler.postDelayed(r, 120000);