I am working on a music player app and it runs as a remote service. When I press back button to exit, the service stops. Why is this happening?
It also shows the following logcat message
android.app.ServiceConnectionLeaked
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to return
START_STICKYfrom the service’sonStartCommand. Check the official documentation