I want to create application that can play a streaming music . When I press home my app can running in background but when I open another application that use more memory my app will stop and killed by android system . Anyone have another idea to run my music player app in background?
thank you
You have to implement a foreground service:
https://developer.android.com/guide/components/services.html#Foreground
Example: