On Tue, Sep 20, 2011 at 6:28 PM, BorisB <boris.br...@gmail.com> wrote:
> Hi all,
>
> The device is HTC Wildfire with locale set to Greek.
> NullPointer exception in SetLanguage generates infinite loop in
> initTtts . Relevant portion of log is
>
> V/TtsService( 7474): TtsService.onCreate()
> E/TtsService( 7474): Invalid TTS Engine Package: com.marvin.espeak
> V/TtsService( 7474): TtsService.setLanguage(ell, , )

Are you calling setEngineByPackageName()? If so, you should check
the return code, and not call setLanguage() if it returns ERROR. Also,
it seems it takes a bit of time to initialize after you call
setEngineByPackageName()
even if it returns SUCCESS.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to