I have an audio player which has two main activities. 1.The splash Activity for loading splash page and another for the player.When I press the back button and select my app from the launcher multiple instances of the activities are happening.
Splash Activity-Player-Another Splash Activity-Another player-Another splash activity-Another player
A-B-A-B
-A-B
If I clicked play in all 3 player activities 3 songs will be playing in background.
It is only happening when the back button is pressed. It is not happening when you are pressed the home button.
So as a simple solution for the time being I have disabled the back button.
May I get a solution from anybody.