How can i send song as intent to another activity with media player object. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i send song as intent to another activity with media player object.

I am having two activities one with song list and another with all other functionality and interface to play audio. I want to send audio( raw) as intent to other activity. https://code.sololearn.com/csp8tORRkFfG/?ref=app https://code.sololearn.com/cpoA2c6L0nAz/?ref=app

8th Jul 2018, 7:02 PM
Dhruv garg
Dhruv garg - avatar
4 Answers
+ 2
Janning⭐ I am talking about Android development. Intent is sending request to another app(implicit) to do something or Activity(explicit) in this case. Activity (uses java or kotlin) is where all your logic goes like you have back-end javascript for web.
9th Jul 2018, 9:27 AM
Dhruv garg
Dhruv garg - avatar
+ 1
yeah, I didn't want to post it first because of trouble of sharing it from laptop but I have posted it now. 😐😅
9th Jul 2018, 6:32 PM
Dhruv garg
Dhruv garg - avatar
0
Hi Dhruv garg, I'm a bit confused by your question. Could you please elaborate on what you mean by "intent" and "activity" and post your code (preferably in Code Playground and link here) so we can help you troubleshoot the issues you are running into?
9th Jul 2018, 8:57 AM
Janning⭐
Janning⭐ - avatar
0
Oh, I see. That means you have code that can be posted to Code Playground and linked here for us to troubleshoot?
9th Jul 2018, 4:00 PM
Janning⭐
Janning⭐ - avatar