Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经搜索了很多,但没有得到任何有趣的东西。
我想要做两件事,如下所述:
1.App应该在后台运行。
2.应该听用户说什么,如果用户说像“android”这个名字,应用程序应该进入前台并正常运行。
我已经使用 service 和 Alarammanager 完成了它,当我说一些像“android”这样的关键字时,它会启动 Main Activity。
在后台 RecognitionListener 在 Service 的帮助下运行