【问题标题】:i want to run my application in background and start it when i say some keywords like the name of the app [closed]我想在后台运行我的应用程序并在我说一些关键字(如应用程序名称)时启动它[关闭]
【发布时间】:2013-04-11 12:17:11
【问题描述】:

我搜索了很多,但没有找到任何有趣的东西。

我想完成以下两件事:

1.App应该在后台运行。

2.应该听用户说什么,如果用户说像“android”这个名字,应用程序应该进入前台并正常运行。

【问题讨论】:

    标签: android android-asynctask android-service


    【解决方案1】:

    我已经使用 service 和 Alarammanager 完成了它,当我说一些诸如“android”之类的关键字时,它会启动 Main Activity。

    在后台 RecognitionListener 在 Service 的帮助下运行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      • 2017-02-22
      • 2014-03-24
      相关资源
      最近更新 更多