android - 在后台服务中使用相机 [英] android - use camera from within background service

查看:31
本文介绍了android - 在后台服务中使用相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚是否可以在后台服务而不是正常意图中使用相机视频流.

I'm trying to figure out if it is possible to use a camera video stream from within a background service rather than from a normal intent.

我的想法是这样的:

  • 从我的应用启动服务
  • 此服务访问视频流并不断提取特征;根据功能,它发送网络数据包(到本地主机)
  • 用户切换到另一个应用程序 - 服务必须仍在运行并提取功能!

在尝试实施所有这些之前,我想知道是否可行.

Before trying to implement all that, I'd like to know if it was possible.

提前致谢

尼古拉

推荐答案

我认为这是不可能的,因为相机需要一个预览屏幕.查看上一个问题此处

I don't think this is possible as the camera needs a preview screen. See previous question here

这篇关于android - 在后台服务中使用相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆