When I use MediaPlayer to play video in an Activity that themed as a dialog or with the windowIsFloating property I get a shadow overlaying the video (the dialog background shadow). Why? And how do I get rid of it? I guess it has something to do with the SufaceViews nature of having a z-order behind the window and punching holes in front of it.
The reason why i use the windowIsFloating property is that i need to have the previous activity paused to resume it as fast as possible. I know it can be closed by the OS then as well. But that's OK since it seams that most of the time I don't have to reinitialize the activity.
Or are there any other way to keep my previous activity in a paused state(like when using dialog) while starting my second activity?