3

I'm using a SurfaceTexture which I've created in a ForegroundService to capture videos from the camera without any Activity with SurfaceView.

How can I display my SurfaceTexture in an Activity?

I've been looking for something like SurfaceView.setSurfaceTexture() or a constructor that takes a SurfaceTexture but I couldn't find anything.

Davide Cannizzo
  • 2,826
  • 1
  • 29
  • 31
Sultanen
  • 3,084
  • 5
  • 25
  • 46

0 Answers0