I am working on a music player application and working as a remote service. When I click the back button to exit, the service stops. Why is this happening?
It also shows the following logcat message
android.app.ServiceConnectionLeaked
You need to return START_STICKYfrom the service onStartCommand. Check the official documentation
START_STICKY
onStartCommand
Source: https://habr.com/ru/post/1778980/More articles:How to pass Javascript backlink to key or function? - javascriptHow do I start a new JavaScript project (testing, development, construction)? - javascriptΠΠ΅ ΡΠ΄Π°Π»ΠΎΡΡ Π²ΡΠΏΠΎΠ»Π½ΠΈΡΡ ΡΠΊΠΎΠΌΠΏΠΈΠ»ΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ .classes ΠΈΠ· ΠΊΠΎΠΌΠ°Π½Π΄Π½ΠΎΠΉ ΡΡΡΠΎΠΊΠΈ - javaIs an object capable of storing itself in a DataBase messing up the Cohesion class? - c #Sending email in test mode using ActionMailer on rails 3 - ruby-on-railsWhat is wrong with using the depth buffer? OpenGL ES 2.0 - iphoneFunction implementation in a separate file - c ++Squash git story - gitHMVC and datamapper codec compatibility - codeigniterjQuery: counting a specific character in a table column - jqueryAll Articles