如何使用相机的活饲料作为活动背景吗? [英] How to use camera live feed as a activity background?

查看:142
本文介绍了如何使用相机的活饲料作为活动背景吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让一个应用程序中,我需要使用相机的活饲料作为背景。 (我知道它的一个愚蠢的事情,但不能帮助其客户的需求)。

I am trying to make an App in which I need to use camera live feed as a background. (I know its a stupid thing to do but can't help, its a client demand).

我曾尝试用做 SurfaceView ,但没有成功为止。

I have tried doing it using SurfaceView but no success so far.

到目前为止,无论我在Stack Overflow上找到更多的是一种猜测或方向如何做到这一点,但没有实时的例子或code的帮助就在那里。这将是巨大的,如果有人谁做了这之前分得一块code。与堆栈溢出的用户和我一样。

So far whatever I found on Stack Overflow are more of a guesses or directions how to do it but no real time examples or code help is out there. It would be great if someone who has done this before share a piece of code with Stack Overflow users like me.

推荐答案

在这里看看:

http://developer.android.com/guide/topics/media/ camera.html

有是所有你需要做这表明相机preVIEW活动的code。

There is all the code you need to make an activity which shows the camera preview.

这篇关于如何使用相机的活饲料作为活动背景吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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