B
B
bropa2017-03-27 18:05:53
Java
bropa, 2017-03-27 18:05:53

How to display preview in wallpaperservice with Android Camera2 API?

Tell me how to display a camera preview with the new camera 2 api in wallpaperservice
. You need to make a transparent live wallpaper. For <6, I did everything on the previous version of the API, and in 6 its support was removed.
In the example, Google displays everything in a textureview in a fragment, but as I understand it, I need a surfaceview and I just can’t figure it out. Thanks in advance
https://github.com/googlesamples/android-Camera2Basic

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question