0
  1. I'm creating an music player App where in I have a layout(Main_Activity) which contains 4 buttons namely Play_List_A , Play_List_B , Play and Stop. here if i click on Play_List_A it redirects to a new Activity named songList where list of mp3 files are loaded into a listView, so if I click on the list item it has to redirect me again to the Main_Activity with the song position(Index) and name. I used putExtras() to do this.
  2. If I click on Play_List_B its has to start the same songList Activity and if i click on the list item it has to redirect me to the same Main_Activity with the song Position(Index) and name. I used putExtras() method to do this

How will make both the songs to play one after the other when Play button is clicked

Tim
  • 41,901
  • 18
  • 127
  • 145
Dharma Raj
  • 13
  • 6

1 Answers1

0

you need to use startActivityForResult and check this so question and first answer: call custom Activity as startActivityForResult

penduDev
  • 4,743
  • 35
  • 37