I develop, an app which have two SurfaceView. One of them (view1) is used to draw graphic 2D object (shape, text) and the other (view2) to display a video playback.
To draw the graphic 2D object, I used lockCanvas() and unlockCanvasAndPost() on the SurfaceHolder of the SurfaceView.
My problem is the following:
first I use an AbsoluteLayout to manage my views and a G1 or G2.
- If the view2 is under the view1, the video playback is correctly displayed, but if I go to the home screen of the device and after go back to my app, the video playback is no more displayed.
- If the view1 is under the view2, the video playback is not displayed, but if I go to the home screen of the device and after go back to my app, the video playback correctly displayed.
I don't understand this behavior.
Thanks for your help.