【问题标题】:Android best practice: is it ok to initialize the TextToSpeech engine on the main thread?Android最佳实践:可以在主线程上初始化TextToSpeech引擎吗?
【发布时间】:2020-07-12 20:16:15
【问题描述】:

在主线程初始化androidTextToSpeech对象可以吗?我的理解是,在onCreate() 中创建实例应该不是问题,因为TextToSpeech.OnInitListener 是一个异步回调,它不会减慢 UI。这个假设正确吗?

【问题讨论】:

  • 是的,我也认为它是正确的。

标签: android performance profiling text-to-speech


【解决方案1】:

答案是:是的,这是正确的。 :D

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-30
    • 2014-09-02
    • 2016-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多