Guest User

Untitled

a guest
Dec 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. tts = new TextToSpeech(context, new TextToSpeech.OnInitListener() {
  2. @Override
  3. public void onInit(int status) {
  4. Log.d(Constants.APP_TAG, "tts onInit. Code = " + status);
  5. if (status == TextToSpeech.SUCCESS) {
  6. Log.d(Constants.APP_TAG, "Speaking text now");
  7. BeepActionManager.ttsInitCode = TextToSpeech.SUCCESS;
  8. speak(msg);
  9. }else{
  10. showTTSNotWorking(context, ttsInitCode);
  11. }
  12. }
  13. });
  14.  
  15. 12-15 01:45:01.567 23113-23113/com.mindedges.beephourly E/AndroidRuntime: FATAL EXCEPTION: main
  16. Process: com.mindedges.beephourly, PID: 23113
  17. android.content.ReceiverCallNotAllowedException: BroadcastReceiver components are not allowed to bind to services
  18. at android.a
Add Comment
Please, Sign In to add comment