关于VoiceInteractionService,我有很多问题。
https://developer.android.com/reference/android/service/voice/VoiceInteractionService
在我看来,这是一种机制,通过这种机制,Google助手可以将钩子连接到操作系统中,从而真正作为默认的助手工作。然而,它仍然有很多需要更多的解释。
在VoiceInteractionSession中:
VoiceInteractionService:
一般性问题:
发布于 2020-07-23 09:38:08
对于VoiceInteractionSession
中的UI,您应该膨胀布局(在onCreateContentView()
中使用getLayoutInflater().inflate(layout)
,通过id查找视图并返回视图)。
如果需要设置主题,则应该使用setTheme(theme)
进行设置,并在onCreate()
中调用调用super.onCreate()
。
https://stackoverflow.com/questions/56066756
复制相似问题