Fix #378 Bug: SpeechRecognizer is not threadsafe.
Fix #378 Bug: SpeechRecognizer is not threadsafe.

Use ArrayList to store listeners, synchronize when adding and removing.
Use toArray when iterating.

git-svn-id: 56c0a41d60cd7d30170b1d983643459750036b23@12372 94700074-3cef-4d97-a70e-9c8c206c02f5

cmusphinx/pocketsphinx-android