package Ġbr . uf pe . cin . if 7 1 0 . services Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġkotlinx . android . synt hetic . main . activity _ music _ player _ no _ binding .* Ċ Ċ class ĠMusic Player No Binding Activity Ġ: ĠActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ music _ player _ no _ binding ) ĊĊĠĠĠĠĠĠĠ Ġval Ġservice Intent Ġ= ĠIntent ( this , ĠMusic Player No Binding Service :: class . java ) ĊĊĠĠĠĠĠĠĠ Ġbtn _ Start Service . setOnClickListener Ġ{ Ġstart Service ( service Intent ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġbtn _ Stop Service . setOnClickListener Ġ{ Ġstop Service ( service Intent ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ