Android: How can we move the playing video from one activity to another activity or dialogue without re-buffering?
Can we move the playing video from the activity to the popup dialog without breaking the game?
I tried this but I was unable to get it to work with SurfaceView as it creates a hole in the popup and displays the content in the Activity behind.
Alternatively, try removing the video (or playing in SurfaceView / VideoView) from the activity and adding it to the dialog. But this re-buffers the video and I want to play continuously without re-buffering.
Any suggestions would be appreciated
source to share
you can see this link for this if any problem then asks me to be friendly
I haven't tried to tell for sure myself, but I guess if you put VideoView as an argument in http://developer.android.com/reference/android/app/Dialog.html#addContentView(android.view.View , android.view. ViewGroup.LayoutParams), this should be what you want. Just make the alert raised on the button listener. It's http://developer.android.com/reference/android/widget/VideoView.html which you want to send in an instance.
source to share