gpt4 book ai didi

android - 从服务调用 RecognizerIntent

转载 作者:行者123 更新时间:2023-11-30 04:53:03 26 4
gpt4 key购买 nike

我正在开发一项 Android 服务。我需要从服务调用 RecognizerIntent 以便在服务中使用已识别的文本。我在 Service 类中没有 startActivityForResult() 方法,所以我无法理解如何完成此任务。是否可以?

非常感谢

最佳答案

不,我不认为这是可能的。毕竟,服务没有 UI,RecognizerIntent 需要 UI 才能运行。

关于android - 从服务调用 RecognizerIntent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2431420/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com