How to set locale to TTS engine dynamically?
<p>I have one requirement in which User will have options to select languages for e.g English and French.</p>

<p>App will have set of activities and one background service so when app starts,at that time service will start and TTS engine will get initialize with default language as English in service(onInit() method). I have to set the language which will be set by the user when that particular activity starts.</p>

<p>So how to configure the selected language locale in TTS engine at runtime? </p>

<p>My observation is when service starts at that time only TTS engine get intialize with the default language inside onInit() method and at instance activity is not available so we will not have any configured language details so we can't do that but actual problem what I am facing is second time onwards how to change the locale of TTS engine(When user selects language from the activity) because we can't use mTts.setLanguage(Locale.FRENCH) outside of onInit() method as if you call this also it will not reflect changes in TTS.</p>

<p>So please help me out to resolve this issue.</p>
