0

Is there any way to play the same background video in all activities? (preferably not to restart when opening a new activity)

Some methods from here: Integrating video file in android app as app background kinda works, but only in one activity. For example, if I go from my main activity into another, when I come back some elements from my .xml file fails to visible load. In fact, the buttons are still there if I press where they should be, it works, but they are not visible.

Nouman Ch
  • 3,896
  • 4
  • 30
  • 39
Moisoni Ioan
  • 731
  • 7
  • 20
  • I don't think that is going to work, but you might be able to use Fragments instead of activities and leave the background video playing in the activity or base fragment. – cwbowron Jan 16 '18 at 15:37
  • My app already has a lot of activities so I wont re-done everything with fragments..I was just thinking to change the design of the app with that backgroud video. It's not a big issue if it is restarting everytime, but I don't know why some elements doesn't appear when I am switching activities... – Moisoni Ioan Jan 16 '18 at 15:46

0 Answers0