Search code examples
androidandroid-camerasurfaceview

Android background camera preview


I have searched on google/stackoverflow and tried many different solutions but none of them seem to work.

Okay here's what i wanna do:

I want to have a background service which displays a visible surfaceview with a camerapreview inside of it, like outside of the application i want to see myself (by using the front camera) in the surfaceview.

I know that is possible because i have seen other apps do that and i think it's really cool.

How would i do that?

Thank you for any help! THANKS ALOT :)


Solution

  • Here's a sample implementation by an awesome googler Alex Lockwood