SurfaceView in widgets
I am using a widget for a TV app that I want to show streaming, so I need to host the SurfaceView . How does the widget have RemoteViews, how can I use SurfaceView to set the SurfaceHolder value ? I have defined SurfaceView in xml. I have searched the web but didnβt find any help. I need a SurfaceView instance so I can play with it.
+2
source to share
1 answer
How does the widget have RemoteViews, how can I use SurfaceView
It's impossible. SurfaceView
not available for use with app widgets as described in the documentation .
Any alternative to SurfaceView
Unable to show video from app widget. At best, you can try to write your own home screen implementation that does this.
+2
source to share