comparison src/com/five_ten_sg/connectbot/monitor/MonitorService.java @ 6:31979440706a

allow async tts
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 17:13:18 -0700
parents d1f095e4f8f0
children 992dca085fa2
comparison
equal deleted inserted replaced
5:d1f095e4f8f0 6:31979440706a
93 return binder; 93 return binder;
94 } 94 }
95 95
96 public void printer(String msg) { 96 public void printer(String msg) {
97 if (handler != null) handler.sendMessage(handler.obtainMessage(MonitorActivity.MESSAGE_CODE_PRINT, msg)); 97 if (handler != null) handler.sendMessage(handler.obtainMessage(MonitorActivity.MESSAGE_CODE_PRINT, msg));
98 if (speech) talker.speak(msg, TextToSpeech.QUEUE_FLUSH, null);
99 } 98 }
100 99
101 @Override 100 @Override
102 public int onStartCommand(Intent intent, int flags, int startId) { 101 public int onStartCommand(Intent intent, int flags, int startId) {
103 Log.i(TAG, "service onStartCommand()"); 102 Log.i(TAG, "service onStartCommand()");