If it works for you as it is, that's fine. It could be a lot more robust, it was only intended as an example.
If you release the recorder resources, you should be able to initialize it again I believe, you'll need to check it, along with catching and dealing with orientation changes and other android lifecycle issues.