开发者

Call RecognizerIntent from service

开发者 https://www.devze.com 2022-12-22 13:55 出处:网络
I am working on an Android service. I need to call RecognizerIntent from a service in order to use in the service the recognized text. I have no startActivityFor开发者_如何学CResult() method in Servic

I am working on an Android service. I need to call RecognizerIntent from a service in order to use in the service the recognized text. I have no startActivityFor开发者_如何学CResult() method in Service class so I have problem understanding how to achieve this task. Is it possible?

Many thanks


No, I do not believe it is possible. After all, there is no UI from a service, and the RecognizerIntent needs a UI in order to function.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号