Android的 - 用相机活饲料作为活动背景吗? [英] Android - use camera live feed as a activity background?
问题描述
我试图让一个应用程序中,我需要使用相机的活饲料作为背景。 (我知道它的一个愚蠢的事情,但不能帮助其客户的需求)。
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.
到目前为止,无论我在计算器中发现更多的是一种猜测或方向如何做到这一点,但没有实时的例子或code的帮助就在那里。这将是巨大的,如果有人谁做这个之前,计算器用户喜欢我分享这块code的。我真的AP preciate它。
So far whatever i found on stackoverflow 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 stackoverflow users like me. I would really appreciate it.
先谢谢了。
推荐答案
在这里看看:
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.
这篇关于Android的 - 用相机活饲料作为活动背景吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!