0

I put a "home" button in my play activity but when I click the home button it goes back to the home menu but the background music is repeating (its playing background music again in same time so it ended up playing same music everytime i click the "home" button).

  • You say you want a button that sends you home, but you also say you already have one. Please add your code so we can help, and explain why there is music playing. Is that the purpose of the app? Do you want music to play or not? – parker_codes Aug 17 '16 at 05:03
  • I have 4 activity. **w**,** x** ,**y** ,**z**/. **W** is my first activity having a background music and **Z** is my play activity. I have a home button in Z activity that open the **W** activity. But when I click the home button, it opens the **W** activity starting the background music also so it ended up playing multiple music in thee same time. – AdmiralCharl Aug 17 '16 at 06:02

1 Answers1

0

Your comment allows us to help a bit more. Now we can see that your problem is not with your home button- it is with overlaying your music.

Take a look at this overflow post.

Community
  • 1
  • 1
parker_codes
  • 3,267
  • 1
  • 19
  • 27