- Home /
The question is answered, right answer was accepted
How can I make music player running in background (Android)
Hi guys, I create a music player app for android devices, I would like my app to continue to play music when the user goes to a lock screen. Is there any way to do this in Unity?
Answer by $$anonymous$$ · Apr 23, 2018 at 08:16 PM
I solved my problem:
1)you must export your project into android studio.
2)in AndroidStudio, find UnityPlayerActivity.JAVA in src folder, and delete this line: mUnityPlayer.pause();
3)create your apk in android studio. it's all of you want.
hope this help you if you have same problem.
Thanks for answer! sure will help some other users in the future!
I close the question :D
Bye!
Follow this Question
Related Questions
[Android] Keep music play on standby 0 Answers
Audio Player in Background 1 Answer
What do I pass into Application.OpenURL to open up the Android market from an app? 2 Answers
How to differentiate touches on mobile devices 1 Answer
Unity to Android? 2 Answers