SoundRecorder crash if click start/stop button quickly

The stop API: android.media.MediaRecorder.stop will throw
IllegalStateException if it is called immediately
after start(). The native method stop() will throw
RuntimeException before IllegalStateException. So try
to catch RuntimeException.

Change-Id: Ib32baf16e6fd693af4093365d487a05dab6f104e
Signed-off-by: Jindong <jindong.yue@nxp.com>
1 file changed